Add : colon to menu item links to fix external links (#6508)

This commit is contained in:
demonspork
2022-12-15 19:29:46 -06:00
committed by GitHub
parent 0719510ab5
commit 5ccd29f20f
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@
}
//sanitize the menu link
$menu_item_link = preg_replace('#[^a-zA-Z0-9_\-\.\&\=\?\/]#', '', $menu_item_link);
$menu_item_link = preg_replace('#[^a-zA-Z0-9_:\-\.\&\=\?\/]#', '', $menu_item_link);
//when a HTTP POST is available then process it
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {