Merge pull request #7290 from owncloud/issue/5463

Correctly redirect to settings page when not selecting cert file for upload
This commit is contained in:
icewind1991 2014-02-20 16:24:31 +01:00
commit d1b1ad0813
1 changed files with 1 additions and 1 deletions

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;
}