summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2010-11-20 13:17:00 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-11-20 13:17:00 +0100
commit85dcda20ffd82becbe69a7ca5d99e4b6fd99c9ea (patch)
tree317c220258e0e95042cd56c17dd575f46a618210
parent4064e2d30906d01e696c5de106fd9ff356980a93 (diff)
downloadrpg-85dcda20ffd82becbe69a7ca5d99e4b6fd99c9ea.tar.gz
rpg-85dcda20ffd82becbe69a7ca5d99e4b6fd99c9ea.tar.bz2
Send 403 header for permission denied screens when send404 is enabled
-rw-r--r--inc/actions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 7a6d2eb85..fb2ae452f 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -20,6 +20,7 @@ function act_dispatch(){
global $ID;
global $QUERY;
global $lang;
+ global $conf;
$preact = $ACT;
@@ -143,6 +144,10 @@ function act_dispatch(){
$ACT = act_permcheck($ACT);
} // end event ACTION_ACT_PREPROCESS default action
$evt->advise_after();
+ // Make sure plugs can handle 'denied'
+ if($conf['send404'] && $ACT == 'denied') {
+ header('HTTP/1.0 403 Forbidden');
+ }
unset($evt);
// when action 'show', the intial not 'show' and POST, do a redirect