fnmatch has a string length limit :|
This commit is contained in:
parent
190d8bd7d7
commit
57fa354842
@ -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']));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user