summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorGina Haeussge <gina@foosel.net>2010-06-27 12:50:33 +0200
committerGina Haeussge <gina@foosel.net>2010-06-27 12:50:33 +0200
commite2cf96715e4b23d94ad97f3a22e0ce8bb89ed928 (patch)
tree1981c7703bfdbb1cb7197ba4e9733a80d6291791 /doku.php
parent40f3c0b59813d467030d51948d518069141fd998 (diff)
downloadrpg-e2cf96715e4b23d94ad97f3a22e0ce8bb89ed928.tar.gz
rpg-e2cf96715e4b23d94ad97f3a22e0ce8bb89ed928.tar.bz2
FS#1960: Don't use substr on $ACT array.
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/doku.php b/doku.php
index 52e8e6b8e..052e18be9 100644
--- a/doku.php
+++ b/doku.php
@@ -61,7 +61,7 @@ if($conf['allowdebug'] && $ACT == 'debug'){
//send 404 for missing pages if configured or ID has special meaning to bots
if(!$INFO['exists'] &&
($conf['send404'] || preg_match('/^(robots\.txt|sitemap\.xml(\.gz)?|favicon\.ico|crossdomain\.xml)$/',$ID)) &&
- ($ACT == 'show' || substr($ACT,0,7) == 'export_') ){
+ ($ACT == 'show' || (!is_array($ACT) && substr($ACT,0,7) == 'export_')) ){
header('HTTP/1.0 404 Not Found');
}