Commit 227010d1 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

menu system, escape @ to avoid "preg_match(): Unknown modifier" on mailto: url

(cherry picked from commit be9a2787)
parent 7b2c48ac
......@@ -394,7 +394,7 @@ class MenuItem
if ($node->getUrl() != "") {
// hash part isn't available on server end
$menuItemUrl = explode("#", $node->getUrl())[0];
$match = str_replace(array(".", "*","?"), array("\.", ".*","\?"), $menuItemUrl);
$match = str_replace(array(".", "*","?", "@"), array("\.", ".*","\?", "\@"), $menuItemUrl);
if (preg_match("@^{$match}$@", "{$url}")) {
$node->select();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment