Correctly redirect to settings page when not selecting cert file for upload
Fix #5463
This commit is contained in:
parent
e517e642be
commit
513940f4a4
|
@ -4,7 +4,7 @@ OCP\JSON::checkAppEnabled('files_external');
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
|
|
||||||
if ( ! ($filename = $_FILES['rootcert_import']['name']) ) {
|
if ( ! ($filename = $_FILES['rootcert_import']['name']) ) {
|
||||||
header("Location: settings/personal.php");
|
header('Location:' . OCP\Util::linkToRoute( "settings_personal" ));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue