View Full Version : [FIXED][3] Adding user to buddy list with apostrophe in the name
Boofo
Sun 12th Jan '03, 12:59am
I'm not sure if this hads been reported yet, but if you add a new user to your buddy list in the usercp edit buddy list option, if the new user is the first one in the list and they have an apostrophe in the name, you will get the following error:
The user 'Tester\'s User' was not found in the database. Please go back and correct this problem. You may want to check out the member list.
We fixed it by adding the line:
<input type="hidden" name="listbits[]" value="">
in the 'listedit' template. I am using 2.2.9 but it seems to work right in version 3.0. Is this the correct fix for it? Or is there a more right and better one?
Steve Machol
Sun 12th Jan '03, 1:36am
Bug confirmed in 2.2.9.
Boofo
Sun 12th Jan '03, 1:54am
Originally posted by Steve Machol
Bug confirmed in 2.2.9.
Thank you for the quick responce. It that the right fix for it?
DWZ
Sun 12th Jan '03, 11:16am
Steve over there isn't a developer :)
You will have to wait for one of them to walk over here... shouldn't be too long...
I'm guessing there will be a PHP code fix, someone just forgot something in the code... but yeah, we will know soon :)
Boofo
Sun 12th Jan '03, 11:35am
Originally posted by DWZ
Steve over there isn't a developer :)
You will have to wait for one of them to walk over here... shouldn't be too long...
I'm guessing there will be a PHP code fix, someone just forgot something in the code... but yeah, we will know soon :)
We applied the temporary fix for it. I jusy wanted to make sure the fix we did do wouldn't mess with anything else. We'll wait and see what they come up with. ;)
Scott MacVicar
Wed 15th Jan '03, 6:51pm
Originally posted by Boofo
I'm not sure if this hads been reported yet, but if you add a new user to your buddy list in the usercp edit buddy list option, if the new user is the first one in the list and they have an apostrophe in the name, you will get the following error:
We fixed it by adding the line:
in the 'listedit' template. I am using 2.2.9 but it seems to work right in version 3.0. Is this the correct fix for it? Or is there a more right and better one? actually a problem with a PHP configuration option.
magic_quotes_gpc
it ends up adding slashes twice. Sooo
look for while (list($key,$val)=each($listbits)) {
in member2.php
below add
if (get_magic_quotes_gpc())
{
$val = stripslashes($val);
}
Scotth
Wed 15th Jan '03, 7:37pm
Originally posted by Scott MacVicar
actually a problem with a PHP configuration option.
magic_quotes_gpc
it ends up adding slashes twice. Sooo
look for while (list($key,$val)=each($listbits)) {
in member.php
below add if (get_magic_quotes_gpc())
{
$val = stripslashes($val);
}
I could not find the line above in 2.2.9 member.php. I did find that line in member2.php though. Did you mean to say member2.php?
Scott
Scott MacVicar
Wed 15th Jan '03, 7:55pm
Originally posted by Scotth
I could not find the line above in 2.2.9 member.php. I did find that line in member2.php though. Did you mean to say member2.php?
Scott yes i meant member2.php a bit late for me i guess :)
Boofo
Thu 16th Jan '03, 5:23am
Originally posted by Scott MacVicar
yes i meant member2.php a bit late for me i guess :)
Thanks, Scott. I wanted to make sure we had the right fix for it instead of a temporary fix so there would be no problems later on. ;)
vBulletin® v3.8.0 Alpha 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.