summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-07-08 08:49:41 +0200
committerjocuri%softhome.net <>2004-07-08 08:49:41 +0200
commite09a3eae0f1068e40ae8e09f4ba7e090fd4b54e4 (patch)
treebd9d6622d93159a814ee1ecb2e29fb88f7cf4c7e /editproducts.cgi
parent8df71955b11c27791f3b04808adbe31e3529f796 (diff)
downloadbugzilla-e09a3eae0f1068e40ae8e09f4ba7e090fd4b54e4.tar.gz
bugzilla-e09a3eae0f1068e40ae8e09f4ba7e090fd4b54e4.tar.xz
Patch for bug 250259: Fix taint error on disallownew field in editproducts.cgi; patch by GavinS <bugzilla@chimpychompy.org>; r=vladd, a=justdave.
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 6d33c8080..b0e6279e0 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -1092,7 +1092,7 @@ if ($action eq 'update') {
milestones READ");
if ($disallownew ne $disallownewold) {
- $disallownew ||= 0;
+ $disallownew = $disallownew ? 1 : 0;
SendSQL("UPDATE products
SET disallownew=$disallownew
WHERE id=$product_id");