Browse files

FS#1960: Don't use substr on $ACT array.

  • Loading branch information...
1 parent 40f3c0b commit e2cf96715e4b23d94ad97f3a22e0ce8bb89ed928 @foosel foosel committed Jun 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 doku.php
View
2 doku.php
@@ -61,7 +61,7 @@
//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');
}

0 comments on commit e2cf967

Please sign in to comment.