Quote:
Originally Posted by Haqa
Removing that will bite you the first time someone has a character in their email which PHP or MySQL consider significant. We, for example, had a user whos email address contained a single quote (Their name was something like Fred O'Flintstone or something, so the brain-dead windows AD made their email address fred.o'flintstone or something disturbingly similar!!).
YMMV...
Many thanks to all who have taken this and made such progress including getting it to work on 4.0, I'd expected that not to be possible... Well done all!
H.
|
Here is the fixup:
You need to use the new-style object call to escape the chars, don't use the php external function(s) (particularly because people may be using mysqli and so forth)
Replace all instances of "mysql_real_escape_string()" with:
$vbulletin->db->escape_string(htmlspecialchars_uni(
This is how functions_login.php makes the call, so should you...