summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-14 22:47:36 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-14 22:47:46 -0500
commitfb548cde595850914a7b0e792ba50024e1520c2d (patch)
treeef9a2f33902896c324685ec5293d081a5d0413ca /usr/local/www/pkg_mgr_install.php
parent622bd5e78b465c2bd981e4355de46946fd84d75e (diff)
downloadpfsense-fb548cde595850914a7b0e792ba50024e1520c2d.zip
pfsense-fb548cde595850914a7b0e792ba50024e1520c2d.tar.gz
No need to use escapeshellcmd here.
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 0295172..3424621 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -153,7 +153,7 @@ switch($_GET['mode']) {
update_output_window($static_output);
filter_configure();
}
- file_put_contents("/tmp/" . escapeshellcmd($_GET['pkg']) . ".info", $static_output);
+ file_put_contents("/tmp{$_GET['pkg']}.info", $static_output);
echo "<script type='text/javascript'>document.location=\"pkg_mgr_install.php?mode=installedinfo&pkg={$_GET['pkg']}\";</script>";
break;
case "installedinfo":
@@ -200,7 +200,7 @@ switch($_GET['mode']) {
$static_output .= "\n" . gettext("Installation completed.") . "\n{$_GET['id']} " . gettext("setup instructions") . ":\n{$status}";
else
$static_output .= "\n" . gettext("Installation completed. Please check to make sure that the package is configured from the respective menu then start the package.");
- file_put_contents("/tmp/" . escapeshellcmd($_GET['id']) . ".info", $static_output);
+ file_put_contents("/tmp/{$_GET['id']}.info", $static_output);
echo "<script type='text/javascript'>document.location=\"pkg_mgr_install.php?mode=installedinfo&pkg={$_GET['id']}\";</script>";
}
filter_configure();
OpenPOWER on IntegriCloud