summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-21 18:49:14 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-21 18:49:14 -0500
commitc987ed88bf519f4a5cdd2ebfe68c71d3abecac0e (patch)
tree1e080f6ffca5e86ec0b7b2942ad30da533771fe7 /usr/local/www
parent7f16265af9153cc6bad097379061f7996c9a6171 (diff)
downloadpfsense-c987ed88bf519f4a5cdd2ebfe68c71d3abecac0e.zip
pfsense-c987ed88bf519f4a5cdd2ebfe68c71d3abecac0e.tar.gz
Escape $myurl so that it can be replaced
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/fbegin.inc7
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'];
}
OpenPOWER on IntegriCloud