Update modules code with small fixes and improvements

This commit is contained in:
Marc Alexander
2023-02-13 20:24:54 +01:00
parent ccd7e27410
commit 46a9e89db2
17 changed files with 64 additions and 59 deletions

View File

@@ -355,7 +355,7 @@ class main_menu extends module_base
$links[$link_id] = array(
'title' => $link_title,
'url' => htmlspecialchars_decode($link_url),
'url' => htmlentities($link_url, ENT_QUOTES | ENT_SUBSTITUTE),
'type' => $link_type,
'permission' => $link_permissions,
);
@@ -372,7 +372,7 @@ class main_menu extends module_base
}
$links[] = array(
'title' => $link_title,
'url' => htmlspecialchars_decode($link_url),
'url' => htmlentities($link_url, ENT_QUOTES | ENT_SUBSTITUTE),
'type' => $link_type,
'permission' => $link_permissions,
);