]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 108822: Prevent any user from changing their own groupset.
authormyk%mozilla.org <>
Thu, 8 Nov 2001 08:54:15 +0000 (08:54 +0000)
committermyk%mozilla.org <>
Thu, 8 Nov 2001 08:54:15 +0000 (08:54 +0000)
Patch by Jake <jake@acutex.net>.
r=bbaetz,myk

userprefs.cgi

index bd5dcb4f2945cf41aeb8666d7aadce9ac3fcf892..bc0f1d672bd271e18ed5a94fcb1578132bb20c04 100755 (executable)
@@ -495,8 +495,8 @@ sub SaveFooter {
             Error("Hmm, the $name query seems to have gone away.");
         }
     }
-    SendSQL("UPDATE profiles SET mybugslink = '" . $::FORM{'mybugslink'} .
-            "' WHERE userid = $userid");
+    SendSQL("UPDATE profiles SET mybugslink = " . SqlQuote($::FORM{'mybugslink'}) .
+            " WHERE userid = $userid");
 }