diff options
author | Phil Davis <phil.davis@inf.org> | 2015-10-25 11:12:05 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-10-25 11:12:05 +0545 |
commit | 7e630279a2cc6f0c5596a0e57060daeaf503b3cc (patch) | |
tree | 69cf9255d31814761cefdf3fd1c05a0979a6fb8a /usr/local | |
parent | add49a3a21e58bcc531e2f0a2ff816c7a8e825a8 (diff) | |
download | pfsense-7e630279a2cc6f0c5596a0e57060daeaf503b3cc.zip pfsense-7e630279a2cc6f0c5596a0e57060daeaf503b3cc.tar.gz |
Fix Command Prompt Download and Upload when not in English - Redmine #5343 for RELENG_2_2
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/exec.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php index 48c192b..60f85a0 100644 --- a/usr/local/www/exec.php +++ b/usr/local/www/exec.php @@ -44,7 +44,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"); @@ -61,7 +61,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']); |