]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix typo in error message and change error code to 403
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 11 Oct 2013 13:23:12 +0000 (15:23 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 11 Oct 2013 13:23:12 +0000 (15:23 +0200)
apps/files_encryption/files/error.php

index b59b7b8e672ec83511c097654ff91bdf762c6a33..b55ddfab02709bc0f57ba6088aaafb326c8a3620 100644 (file)
@@ -18,7 +18,7 @@ if (!isset($_)) { //also provide standalone error page
                                $errorMsg = $l->t('Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.');
                                break;
                        default:
-                               $errorMsg = $l->t("Unknwon error please check your system settings or contact your administrator");
+                               $errorMsg = $l->t("Unknown error please check your system settings or contact your administrator");
                                break;
                }
        } else {
@@ -27,7 +27,7 @@ if (!isset($_)) { //also provide standalone error page
        }
 
        if (isset($_GET['p']) && $_GET['p'] === '1') {
-               header('HTTP/1.0 404 ' . $errorMsg);
+               header('HTTP/1.0 403 ' . $errorMsg);
        }
 
 // check if ajax request