diff options
author | Florin Peter <github@florin-peter.de> | 2013-06-04 00:41:47 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-06-04 00:41:47 +0200 |
commit | 14ac4fab054c332fe3a0e110bec6cb118bf83186 (patch) | |
tree | 232858096f95a30e61400db27765c73422f565df /apps/files_encryption/files | |
parent | ef97481a0d7dcedba830bc423d623111f6c2e774 (diff) | |
download | nextcloud-server-14ac4fab054c332fe3a0e110bec6cb118bf83186.tar.gz nextcloud-server-14ac4fab054c332fe3a0e110bec6cb118bf83186.zip |
better handling for http post
Diffstat (limited to 'apps/files_encryption/files')
-rw-r--r-- | apps/files_encryption/files/error.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_encryption/files/error.php b/apps/files_encryption/files/error.php index 3118299b519..37e94e5658f 100644 --- a/apps/files_encryption/files/error.php +++ b/apps/files_encryption/files/error.php @@ -4,6 +4,10 @@ if (!isset($_)) { //also provide standalone error page $l = OC_L10N::get('files_encryption'); + if(isset($_GET['p']) && $_GET['p'] === '1') { + header('HTTP/1.0 404 ' . $l->t('Your private key is not valid! Maybe the your password was changed from outside.')); + } + // check if ajax request if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { \OCP\JSON::error(array('data' => array('message' => $l->t('Your private key is not valid! Maybe the your password was changed from outside.')))); |