summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_patterns.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-03-20 10:06:47 -0400
committerjim-p <jimp@pfsense.org>2012-03-20 10:08:23 -0400
commit2f3d495080a0b9c29dfa58cad304160d4a74716d (patch)
tree91baa5ae6ae26ddc4e4f204ac2b6cc83d9f9a2df /usr/local/www/diag_patterns.php
parent89cb50deb8be69578935249cdd7fa4067ef7923b (diff)
downloadpfsense-2f3d495080a0b9c29dfa58cad304160d4a74716d.zip
pfsense-2f3d495080a0b9c29dfa58cad304160d4a74716d.tar.gz
Fix pattern upload, button text check was incorrect.
Diffstat (limited to 'usr/local/www/diag_patterns.php')
-rwxr-xr-xusr/local/www/diag_patterns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_patterns.php b/usr/local/www/diag_patterns.php
index c6b75e9..d42ef1c 100755
--- a/usr/local/www/diag_patterns.php
+++ b/usr/local/www/diag_patterns.php
@@ -40,7 +40,7 @@
require("guiconfig.inc");
//Move the upload file to /usr/local/share/protocols (is_uploaded_file must use tmp_name as argument)
-if (($_POST['submit'] == gettext("Upload")) && is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
+if (($_POST['submit'] == gettext("Upload Pattern file")) && is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
if(fileExtension($_FILES['ulfile']['name'])) {
move_uploaded_file($_FILES['ulfile']['tmp_name'], "/usr/local/share/protocols/" . $_FILES['ulfile']['name']);
$ulmsg = gettext("Uploaded file to") . " /usr/local/share/protocols/" . htmlentities($_FILES['ulfile']['name']);
OpenPOWER on IntegriCloud