diff options
author | Phil Davis <phil.davis@inf.org> | 2015-10-25 11:23:14 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-10-25 11:23:14 +0545 |
commit | 1867cd5ccd599ff7fa6953f66c3993259f31681c (patch) | |
tree | 0ab148fbdb0793925f2fdffc5b7a5a674f5703bf | |
parent | dea1f29f898bcb96cf6432ada4b368880a8e1c77 (diff) | |
download | pfsense-1867cd5ccd599ff7fa6953f66c3993259f31681c.zip pfsense-1867cd5ccd599ff7fa6953f66c3993259f31681c.tar.gz |
Fix Command Prompt Download and Upload when not in English - Redmine #5343 for master
This one is broken in master (as well as RELENG_2_2) and this code fixes it.
-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']); |