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:45 -0400 |
commit | 282f571322d9066d9e2e90560d7848ed60b08d81 (patch) | |
tree | 143e815bd6c7f888db2395b254e522164240cb85 /usr | |
parent | 44252f587094f9168f0799d2d8624cda19e16b56 (diff) | |
download | pfsense-282f571322d9066d9e2e90560d7848ed60b08d81.zip pfsense-282f571322d9066d9e2e90560d7848ed60b08d81.tar.gz |
Fix pattern upload, button text check was incorrect.
Diffstat (limited to 'usr')
-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']); |