diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-16 10:55:37 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-16 10:55:37 -0200 |
commit | a194233c76aaffed70d22689c2827f24a51d5fda (patch) | |
tree | 1eccb1848795a4748f5fefab32e37753abe71dcd /src/usr/local/www/pkg_mgr_install.php | |
parent | 31a4f664e11dd11729e94da24356748f6a22febc (diff) | |
download | pfsense-a194233c76aaffed70d22689c2827f24a51d5fda.zip pfsense-a194233c76aaffed70d22689c2827f24a51d5fda.tar.gz |
Unduplicate pkgid definition
Diffstat (limited to 'src/usr/local/www/pkg_mgr_install.php')
-rw-r--r-- | src/usr/local/www/pkg_mgr_install.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php index ea52990..446be8d 100644 --- a/src/usr/local/www/pkg_mgr_install.php +++ b/src/usr/local/www/pkg_mgr_install.php @@ -413,9 +413,11 @@ if (!empty($_POST['id']) || $_POST['mode'] == "reinstallall"): ob_flush(); -if ($_POST && ($_POST['completed'] != "true") ) { +if ($_POST) { $pkgid = str_replace(array("<", ">", ";", "&", "'", '"', '.', '/'), "", htmlspecialchars_decode($_POST['id'], ENT_QUOTES | ENT_HTML401)); +} +if ($_POST && ($_POST['completed'] != "true") ) { /* Write out configuration to create a backup prior to pkg install. */ write_config(gettext("Creating restore point before package installation.")); @@ -452,8 +454,6 @@ if ($_POST && ($_POST['completed'] != "true") ) { // $_POST['completed'] just means that we are refreshing the page to update any new menu items // that were installed if ($_POST['completed'] == "true") { - $pkgid = str_replace(array("<", ">", ";", "&", "'", '"', '.', '/'), "", htmlspecialchars_decode($_POST['id'], ENT_QUOTES | ENT_HTML401)); - if($pkgid == "pfSense-base") { ?> <script> |