Escape $myurl so that it can be replaced

This commit is contained in:
Scott Ullrich 2009-11-21 18:49:14 -05:00
parent 7f16265af9
commit c987ed88bf

View File

@ -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'];
}