Skip to content
Snippets Groups Projects
Commit e2cf9671 authored by Gina Haeussge's avatar Gina Haeussge
Browse files

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

parent 40f3c0b5
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment