From 7e630279a2cc6f0c5596a0e57060daeaf503b3cc Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 25 Oct 2015 11:12:05 +0545 Subject: Fix Command Prompt Download and Upload when not in English - Redmine #5343 for RELENG_2_2 --- usr/local/www/exec.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local') 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']); -- cgit v1.1