mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Escape $myurl so that it can be replaced
This commit is contained in:
parent
7f16265af9
commit
c987ed88bf
@ -57,13 +57,10 @@ function return_ext_menu($section) {
|
||||
if ($colonpos !== False){
|
||||
//my url is actually just the IP address of the pfsense box
|
||||
$myurl = substr($addresswithport, 0, $colonpos);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$myurl = $addresswithport;
|
||||
}
|
||||
|
||||
$description = str_replace('$myurl', $myurl, $menuitem['url']);
|
||||
$description = str_replace('\$myurl', $myurl, $menuitem['url']);
|
||||
} else {
|
||||
$description = '/pkg.php?xml=' . $menuitem['configfile'];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user