Hmm, apparently, we didn't quote enough.
authorJoey Schulze <joey@infodrom.org>
Thu, 26 Jun 2003 19:29:42 +0000 (19:29 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 26 Jun 2003 19:29:42 +0000 (19:29 +0000)
src/LinuxTag/2003/supporter/update.wml

index ed398eb..4edc2bb 100644 (file)
           $query = sprintf ("INSERT INTO person (name,email,project,nightplace,infomail,insurance,list,admin,"
                       ."login,password,comment) "
                       ."VALUES ('%s',%s,'%s','%s',%d,%d,%d,%d,%d,'%s','%s')",
-                      $name, $email, $project, $nightplace, $infomail, $insurance, $list,
+                      addslashes ($name), $email, $project, $nightplace, $infomail, $insurance, $list,
                       $admin, $login, strlen ($newpass)?md5 ($newpass):"", $comment);
          pg_exec ($dbh, $query) or die("Datenbank-Abfrage!");
         } else {