diff options
author | jim-p <jimp@pfsense.org> | 2012-03-20 10:06:47 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-03-20 10:08:23 -0400 |
commit | 2f3d495080a0b9c29dfa58cad304160d4a74716d (patch) | |
tree | 91baa5ae6ae26ddc4e4f204ac2b6cc83d9f9a2df | |
parent | 89cb50deb8be69578935249cdd7fa4067ef7923b (diff) | |
download | pfsense-2f3d495080a0b9c29dfa58cad304160d4a74716d.zip pfsense-2f3d495080a0b9c29dfa58cad304160d4a74716d.tar.gz |
Fix pattern upload, button text check was incorrect.
-rwxr-xr-x | usr/local/www/diag_patterns.php | 2 |
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']); |