[vhffs-dev] [1118] Forgot to escape the realname... |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1118
Author: crafty
Date: 2008-01-09 20:46:27 +0000 (Wed, 09 Jan 2008)
Log Message:
-----------
Forgot to escape the realname...
Modified Paths:
--------------
trunk/vhffs-forum/punbb-1.2.15_vhffs.patch
Modified: trunk/vhffs-forum/punbb-1.2.15_vhffs.patch
===================================================================
--- trunk/vhffs-forum/punbb-1.2.15_vhffs.patch 2008-01-08 18:17:12 UTC (rev 1117)
+++ trunk/vhffs-forum/punbb-1.2.15_vhffs.patch 2008-01-09 20:46:27 UTC (rev 1118)
@@ -552,7 +552,7 @@
+ $language = 'English';
+
+ // creating new user in forum database
-+ $db->query('INSERT INTO '.$db->prefix.'users (username, password, group_id, email, email_setting, save_pass, timezone, language, style, registered, registration_ip, last_visit, realname) VALUES (\''.$db->escape($form_username).'\', \'\','.$intial_group_id.', \''.$vhffs_user_mail.'\', 1, 1, 0 , \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$vhffs_inscription_date.', \''.get_remote_address().'\', '.time().', \''.$vhffs_user_firstname.'\ '.$vhffs_user_lastname.'\' )') or error('Unable to create user in forum database. Error: '.$db->error(), __FILE__, __LINE__, $db->error());
++ $db->query('INSERT INTO '.$db->prefix.'users (username, password, group_id, email, email_setting, save_pass, timezone, language, style, registered, registration_ip, last_visit, realname) VALUES (\''.$db->escape($form_username).'\', \'\','.$intial_group_id.', \''.$vhffs_user_mail.'\', 1, 1, 0 , \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$vhffs_inscription_date.', \''.get_remote_address().'\', '.time().', \''.$db->escape($vhffs_user_firstname).'\ '.$db->escape($vhffs_user_lastname).'\' )') or error('Unable to create user in forum database. Error: '.$db->error(), __FILE__, __LINE__, $db->error());
+ $user_id = $db->insert_id();
+ $vhffs_user_import = true;
+ }