]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 108822: It was possible for a user to send arbitrary SQL by inserting...
authorjustdave%syndicomm.com <>
Sat, 17 Nov 2001 16:24:08 +0000 (16:24 +0000)
committerjustdave%syndicomm.com <>
Sat, 17 Nov 2001 16:24:08 +0000 (16:24 +0000)
preferences.
Patch by Jake Steenhagen
r= myk, bbaetz

userprefs.cgi

index bc0f1d672bd271e18ed5a94fcb1578132bb20c04..fad31b4e435c2b2999de670516619d7ea3c7e0d7 100755 (executable)
@@ -17,7 +17,7 @@
 #                 Dan Mosedale <dmose@mozilla.org>
 #                 Alan Raetz <al_raetz@yahoo.com>
 #                 David Miller <justdave@syndicomm.com>
-#                 Christopher Aillon <christopher@aillon.com>
+#
 
 use diagnostics;
 use strict;
@@ -171,7 +171,7 @@ sub SaveAccount {
                  WHERE   userid = $userid");
     }
     SendSQL("UPDATE profiles SET " .
-            "realname = " . SqlQuote(trim($::FORM{'realname'})) .
+            "realname = " . SqlQuote($::FORM{'realname'}) .
             " WHERE userid = $userid");
 }
 
@@ -299,7 +299,7 @@ sub showExcludeSelf (\%) {
                 <table><tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <b>Global options:</b></tr>
                 <tr><td width=150></td><td>
-                Only email me reports of changes made by other people
+                Do not email me bugs that I change
              <input type="checkbox" name="ExcludeSelf" VALUE="on" $excludeSelf>
                 <br>
                 </td>
@@ -502,7 +502,7 @@ sub SaveFooter {
 
 
 sub ShowPermissions {
-    print "<TR><TD>You have the following permission bits set on your account:\n";
+    print "You have the following permission bits set on your account:\n";
     print "<P><UL>\n";
     my $found = 0;
     SendSQL("SELECT description FROM groups " .
@@ -532,7 +532,6 @@ sub ShowPermissions {
         }
         print "</UL>\n";
     }
-    print "</TR></TD>\n";
 }