From e09a3eae0f1068e40ae8e09f4ba7e090fd4b54e4 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Thu, 8 Jul 2004 06:49:41 +0000 Subject: Patch for bug 250259: Fix taint error on disallownew field in editproducts.cgi; patch by GavinS ; r=vladd, a=justdave. --- editproducts.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editproducts.cgi') 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"); -- cgit v1.2.3-24-g4f1b