fnmatch has a string length limit :|
This commit is contained in:
parent
190d8bd7d7
commit
57fa354842
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ class Blocks extends Extension {
|
|||
$database->cache->set("blocks", $blocks, 600);
|
||||
}
|
||||
foreach($blocks as $block) {
|
||||
if(fnmatch($block['pages'], implode("/", $event->args))) {
|
||||
$path = implode("/", $event->args);
|
||||
if(strlen($path) < 4000 && fnmatch($block['pages'], $path)) {
|
||||
$page->add_block(new Block($block['title'], $block['content'], $block['area'], $block['priority']));
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue