]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly redirect to settings page when not selecting cert file for upload
authorJoas Schilling <nickvergessen@gmx.de>
Wed, 19 Feb 2014 16:07:29 +0000 (17:07 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Wed, 19 Feb 2014 16:07:29 +0000 (17:07 +0100)
Fix #5463

apps/files_external/ajax/addRootCertificate.php

index ae349bfcd3a5b18499a59b4c20d2f1e96a7c048f..fcd3a617adafd4a677fe907aefd87b34271888ed 100644 (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;
 }