mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
Revert "menu, replace "str_replace(array(".", "*","?", "@"), array("\.", ".*","\?", "\@"....) for preg_quote, as suggested by @fabianfrz"
This reverts commit 6658611069ae38e00b072c62c0dda3ea19b2586b.
This commit is contained in:
parent
6658611069
commit
85e843f2c5
@ -394,7 +394,7 @@ class MenuItem
|
||||
if ($node->getUrl() != "") {
|
||||
// hash part isn't available on server end
|
||||
$menuItemUrl = explode("#", $node->getUrl())[0];
|
||||
$match = preg_quote($menuItemUrl, '@');
|
||||
$match = str_replace(array(".", "*","?", "@"), array("\.", ".*","\?", "\@"), $menuItemUrl);
|
||||
if (preg_match("@^{$match}$@", "{$url}")) {
|
||||
$node->select();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user