Correctly redirect to settings page when not selecting cert file for upload

Fix #5463
This commit is contained in:
Joas Schilling 2014-02-19 17:07:29 +01:00
parent e517e642be
commit 513940f4a4

View file

@ -4,7 +4,7 @@ OCP\JSON::checkAppEnabled('files_external');
OCP\JSON::callCheck();
if ( ! ($filename = $_FILES['rootcert_import']['name']) ) {
header("Location: settings/personal.php");
header('Location:' . OCP\Util::linkToRoute( "settings_personal" ));
exit;
}