|
From: Benjamin C. <bc...@us...> - 2002-04-11 07:32:29
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv27547
Modified Files:
newaccount.php
Log Message:
Fix a bug with not quoting the email address
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- newaccount.php 3 Apr 2002 01:00:52 -0000 1.29
+++ newaccount.php 11 Apr 2002 07:32:25 -0000 1.30
@@ -62,8 +62,8 @@
$db->query("insert into ".TBL_AUTH_USER." (user_id, login, first_name, last_name, email, password, active, created_date, last_modified_date)"
." values (".join(', ', array($user_id, $db->quote(stripslashes($login)),
$db->quote(stripslashes($firstname)),
- $db->quote(stripslashes($lastname)), $_pv['email'], $mpassword, 1,
- $now, $now)).")");
+ $db->quote(stripslashes($lastname)), $db->quote($_pv['email']),
+ $mpassword, 1, $now, $now)).")");
$db->query("insert into ".TBL_USER_GROUP.
" (user_id, group_id, created_by, created_date)
select $user_id, group_id, 0, $now from ".TBL_AUTH_GROUP.
|