Members List Problem Just Me ?

Posts from previous Beta sessions

Members List Problem Just Me ?

Postby Jardo » Fri Jun 20, 2008 2:57 am

When I edit the field in the main/alt releations for members List, the field in the database is getting an extra "\" every time I view it.

So /ALT-([\w]+)/i becomes /ALT-([\\w]+)/i then /ALT-([\\\w]+)/i.

After a while it takes the whole feild and there is nothing in the DB but the \\\\\\\\\\\etc...

Running Beta 2.0 wowRosterDF
CMS Version 9.2.1
PHP Version 5.2.0
MySQLi Version 5.0.27-community-nt (client: 5.0.22
x86 server with IIS
Last edited by Jardo on Fri Jun 20, 2008 2:59 am, edited 1 time in total.
Jardo
WR.net Apprentice
WR.net Apprentice
 
Posts: 14
Joined: Sat Jul 22, 2006 7:07 am

Members List Problem Just Me ?

Postby PleegWat » Fri Jun 20, 2008 3:38 am

Since it works for me in the normal version, I'm gonna assume it's a DF issue.

Workaround: If you can edit php.ini, try turning magic quotes on/off.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Members List Problem Just Me ?

Postby Anaxent » Fri Jun 20, 2008 3:53 am

Ah I have a fix for this already and was planning on getting a new version to you guys soon.

If you want to fix it your self until I am done you will need to edit the update_hook.php for memberslist and edit line 187

from
Code: Select all
if(preg_match($this->data['rules']['getmain_regex']), $matchfield, $regs)


to
Code: Select all
if(preg_match(stripslashes($this->data['rules']['getmain_regex']), $matchfield, $regs))
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Members List Problem Just Me ?

Postby zanix » Fri Jun 20, 2008 4:45 am

Anaxent, the root of this issue should be fixed and not just patched

In settings.php, Roster slashes $_GET, $_POST, and $_REQUEST
I don't remember if DF slashes these by default as well
If it does, then you need to remove the section where Roster slashes these
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Members List Problem Just Me ?

Postby Jardo » Fri Jun 20, 2008 9:09 am

Thanks !! This works for now.
Jardo
WR.net Apprentice
WR.net Apprentice
 
Posts: 14
Joined: Sat Jul 22, 2006 7:07 am


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron