diff options
author | Renato Botelho <renato@netgate.com> | 2015-10-26 07:38:05 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-10-26 07:38:05 -0200 |
commit | 5253e9d73ef8ce9a9815eeef994ec0f854ed5110 (patch) | |
tree | f6cffa5693b749a15ddc707638dc1a63a56d3f18 | |
parent | 487235f366ad1dc2f88520e96185c3da4b512e7a (diff) | |
parent | 1867cd5ccd599ff7fa6953f66c3993259f31681c (diff) | |
download | pfsense-5253e9d73ef8ce9a9815eeef994ec0f854ed5110.zip pfsense-5253e9d73ef8ce9a9815eeef994ec0f854ed5110.tar.gz |
Merge pull request #1987 from phil-davis/patch-7
-rw-r--r-- | src/usr/local/www/exec.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/exec.php b/src/usr/local/www/exec.php index de5decb..32510ef 100644 --- a/src/usr/local/www/exec.php +++ b/src/usr/local/www/exec.php @@ -71,7 +71,7 @@ $allowautocomplete = true; require("guiconfig.inc"); -if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) { +if (($_POST['submit'] == gettext("Download")) && file_exists($_POST['dlPath'])) { session_cache_limiter('public'); $fd = fopen($_POST['dlPath'], "rb"); header("Content-Type: application/octet-stream"); @@ -88,7 +88,7 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) { fpassthru($fd); exit; -} else if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name'])) { +} else if (($_POST['submit'] == gettext("Upload")) && is_uploaded_file($_FILES['ulfile']['tmp_name'])) { move_uploaded_file($_FILES['ulfile']['tmp_name'], "/tmp/" . $_FILES['ulfile']['name']); $ulmsg = "Uploaded file to /tmp/" . htmlentities($_FILES['ulfile']['name']); unset($_POST['txtCommand']); |