summaryrefslogtreecommitdiff
path: root/program/include/rcmail_output_json.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcmail_output_json.php')
-rw-r--r--program/include/rcmail_output_json.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcmail_output_json.php b/program/include/rcmail_output_json.php
index fa35824db..91262acb3 100644
--- a/program/include/rcmail_output_json.php
+++ b/program/include/rcmail_output_json.php
@@ -181,6 +181,11 @@ class rcmail_output_json extends rcmail_output
*/
public function raise_error($code, $message)
{
+ if ($code == 403) {
+ header('HTTP/1.1 403 Forbidden');
+ die("Invalid Request");
+ }
+
$this->show_message("Application Error ($code): $message", 'error');
$this->remote_response();
exit;