diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 18:49:14 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 18:49:14 -0500 |
commit | c987ed88bf519f4a5cdd2ebfe68c71d3abecac0e (patch) | |
tree | 1e080f6ffca5e86ec0b7b2942ad30da533771fe7 /usr | |
parent | 7f16265af9153cc6bad097379061f7996c9a6171 (diff) | |
download | pfsense-c987ed88bf519f4a5cdd2ebfe68c71d3abecac0e.zip pfsense-c987ed88bf519f4a5cdd2ebfe68c71d3abecac0e.tar.gz |
Escape $myurl so that it can be replaced
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/fbegin.inc | 7 |
1 files 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']; } |