Bug w. character escaping??

Dragonfly integration forum

Bug w. character escaping??

Postby Ecterion » Sat Mar 03, 2007 2:13 pm

lo there...

Made a clean installation of Dragonfly and WowRosterDF and everything went just fine. Updated roster w. the first character (me :rabbit2: ) and it worked like a charm. However, when i try to browse to the updated character i get:

Sorry no data in database for "Ecterion" of "Quel\\\'Thalas"

There seems to be a bug w. the character escaping :shaking: . I've checked the DB and its escaped correctly there "Quel\'Thalas" which is also proved by the fact that the upload didn err.

Can any1 tell me where in the source i can correct this?

Cheers
/Ecterion

PS. Also did a standalone installation of roster with a separate database. In that case i didnt get any errors.
Ecterion
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Sat Mar 03, 2007 1:21 pm

Bug w. character escaping??

Postby zanix » Sat Mar 03, 2007 2:18 pm

Remove that slash in the database and try to upload again
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: Bug w. character escaping??

Postby Ecterion » Sun Mar 04, 2007 8:37 pm

zanix wrote:Remove that slash in the database and try to upload again


Tried that but it didnt do any change. The DB has two entries where it saves the server name as far as i can tell and both now reads Quel'Thalas. The link from the main roster page also seems to be correct:

......&cname=Ecterion&server=Quel'Thalas

:scratch: :scratch: :scratch:

Tried it from both IE7 and Firefox w. the same result.

Regards
/E
Ecterion
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Sat Mar 03, 2007 1:21 pm

Re: Bug w. character escaping??

Postby Ecterion » Sun Mar 04, 2007 8:57 pm

Come thinking of it, maby its not WoWRosterDF whos bugged but Dragonfly? (Though i might be skating on real thin ice here :pirate: ). Since the link reads:

....index.php?name=WoWRosterDF&file=char&cname=Ecterion&server=Quel'Thalas

I guess its DF who do the parameter parsing. I realy dont have a clue what im talking bout here so i hope u can bare w. me. :oops:

/E
Last edited by Ecterion on Sun Mar 04, 2007 8:57 pm, edited 1 time in total.
Ecterion
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Sat Mar 03, 2007 1:21 pm

Bug w. character escaping??

Postby zanix » Sun Mar 04, 2007 10:09 pm

Open modules/WoWRosterDF/settings.php

Find and remove
Code: Select all
/**
 * Slash global data if magic_quotes_gpc is off.
 */
set_magic_quotes_runtime(0);
if( !
get_magic_quotes_gpc() )
{
    
$_GET escape_array($_GET);
    
$_POST escape_array($_POST);
    
$_COOKIE escape_array($_COOKIE);
    
$_REQUEST escape_array($_REQUEST);

It might not look exactly like this, but remove it nonetheless
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


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest