diff options
author | jim-p <jimp@pfsense.org> | 2012-05-09 10:18:22 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-09 10:31:19 -0400 |
commit | ca6a8106bf3092480a6036ac351aaa6e34931d07 (patch) | |
tree | a9a0c28a48ecc3e4978731233fdd530d2b2f6aae /config/systempatches/system_patches_edit.php | |
parent | a3e7ed6ffea8d2e833228bb53f1da90ddc09fc24 (diff) | |
download | pfsense-packages-ca6a8106bf3092480a6036ac351aaa6e34931d07.tar.gz pfsense-packages-ca6a8106bf3092480a6036ac351aaa6e34931d07.tar.bz2 pfsense-packages-ca6a8106bf3092480a6036ac351aaa6e34931d07.zip |
Fix validation for pasting in a patch alone, make sure not to offer re-fetch if location is blank. version bump.
Diffstat (limited to 'config/systempatches/system_patches_edit.php')
-rw-r--r-- | config/systempatches/system_patches_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/systempatches/system_patches_edit.php b/config/systempatches/system_patches_edit.php index 32318620..a4038b05 100644 --- a/config/systempatches/system_patches_edit.php +++ b/config/systempatches/system_patches_edit.php @@ -75,8 +75,8 @@ if ($_POST) { /* input validation */ if(empty($_POST['location'])) { - $reqdfields = explode(" ", " patch"); - $reqdfieldsn = array(gettext("Description"),gettext("Patch Contents")); + $reqdfields = explode(" ", "patch"); + $reqdfieldsn = array(gettext("Patch Contents")); } else { $reqdfields = explode(" ", "descr location"); $reqdfieldsn = array(gettext("Description"),gettext("URL/Commit ID")); |