summaryrefslogtreecommitdiffstats
path: root/usr/local/www/exec.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-26 07:38:19 -0200
committerRenato Botelho <renato@netgate.com>2015-10-26 07:38:19 -0200
commite1ef1ff5ce42e5cb7288bbfc385b11111fa8f8f3 (patch)
tree28f57f282c8c9f4e5041711d1dc525974ef1a5f5 /usr/local/www/exec.php
parent2167f9a4fdb036900f35ff2ee6ceff167cb0a6f6 (diff)
parent7e630279a2cc6f0c5596a0e57060daeaf503b3cc (diff)
downloadpfsense-e1ef1ff5ce42e5cb7288bbfc385b11111fa8f8f3.zip
pfsense-e1ef1ff5ce42e5cb7288bbfc385b11111fa8f8f3.tar.gz
Merge pull request #1986 from phil-davis/patch-6
Diffstat (limited to 'usr/local/www/exec.php')
-rw-r--r--usr/local/www/exec.php4
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']);
OpenPOWER on IntegriCloud