Revision 7e630279
Added by Phil Davis almost 10 years ago
usr/local/www/exec.php | ||
---|---|---|
44 | 44 |
|
45 | 45 |
require("guiconfig.inc"); |
46 | 46 |
|
47 |
if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
|
|
47 |
if (($_POST['submit'] == gettext("Download")) && file_exists($_POST['dlPath'])) {
|
|
48 | 48 |
session_cache_limiter('public'); |
49 | 49 |
$fd = fopen($_POST['dlPath'], "rb"); |
50 | 50 |
header("Content-Type: application/octet-stream"); |
... | ... | |
61 | 61 |
|
62 | 62 |
fpassthru($fd); |
63 | 63 |
exit; |
64 |
} else if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
|
|
64 |
} else if (($_POST['submit'] == gettext("Upload")) && is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
|
|
65 | 65 |
move_uploaded_file($_FILES['ulfile']['tmp_name'], "/tmp/" . $_FILES['ulfile']['name']); |
66 | 66 |
$ulmsg = "Uploaded file to /tmp/" . htmlentities($_FILES['ulfile']['name']); |
67 | 67 |
unset($_POST['txtCommand']); |
Also available in: Unified diff
Fix Command Prompt Download and Upload when not in English - Redmine #5343 for RELENG_2_2