summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-26 07:38:05 -0200
committerRenato Botelho <renato@netgate.com>2015-10-26 07:38:05 -0200
commit5253e9d73ef8ce9a9815eeef994ec0f854ed5110 (patch)
treef6cffa5693b749a15ddc707638dc1a63a56d3f18 /src
parent487235f366ad1dc2f88520e96185c3da4b512e7a (diff)
parent1867cd5ccd599ff7fa6953f66c3993259f31681c (diff)
downloadpfsense-5253e9d73ef8ce9a9815eeef994ec0f854ed5110.zip
pfsense-5253e9d73ef8ce9a9815eeef994ec0f854ed5110.tar.gz
Merge pull request #1987 from phil-davis/patch-7
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/exec.php4
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']);
OpenPOWER on IntegriCloud