From c987ed88bf519f4a5cdd2ebfe68c71d3abecac0e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 21 Nov 2009 18:49:14 -0500 Subject: Escape $myurl so that it can be replaced --- usr/local/www/fbegin.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index eaa3157..ed0cf57 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -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']; } -- cgit v1.1