Guild message text escaping

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Guild message text escaping

Postby SDraconis » Mon Jul 24, 2006 2:36 am

In the Guild Message/Message of the Day, there are backslashes appearing in front of characters such as quotation marks. Since the characters are displaying correctly and the backslashes are also appearing, it appears that these backslashes should be removed.

Example: http://b2fb.dracspace.com/roster/motd.p ... BE+BACK%21
Last edited by SDraconis on Mon Jul 24, 2006 2:37 am, edited 1 time in total.
SDraconis
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Mon Jul 24, 2006 1:21 am

Guild message text escaping

Postby zanix » Mon Jul 24, 2006 2:42 am

Use the search

Or, look in "Official Bugs & Updates"
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

Guild message text escaping

Postby SDraconis » Mon Jul 24, 2006 3:05 am

While it may list me as new to this forum, I'm not a total n00b when it comes to online forum etiquitte. I did indeed look in that forum first and then searched, coming up with nothing. There are only two posts in that forum. I guess you mean to say that http://www.wowroster.net/Forums/viewtopic/t=98.html is the answer I'm looking for, but it appeared to me to be specifically referring to the "Guild Info" page of the roster. Perhaps that post should be updated to explain that it refers to a bug in the handling of the MotD text on all pages, and that it applied to all escaped text and not just '\n'.
Last edited by SDraconis on Mon Jul 24, 2006 3:07 am, edited 1 time in total.
SDraconis
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Mon Jul 24, 2006 1:21 am

Re: Guild message text escaping

Postby SDraconis » Mon Jul 24, 2006 3:24 am

I tried using the solution posted in the Official Bugs & Updates and it doesn't work for me. I replaced '\n' with '\"' and "\n" with "\"" and did a guild update. Still no luck, I have backslashes there.
SDraconis
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Mon Jul 24, 2006 1:21 am

Guild message text escaping

Postby SDraconis » Mon Jul 24, 2006 3:37 am

The fix in the Official Bugs & Updates forum was referring to just the guild info as I suspected (so telling me to look in that forum was incorrect, as the solution in there was not for my problem). I went a few lines up and did the same thing to the value "guild_motd" instead, but still no dice. I then looked into it and saw that the URL sent to motd.php via GET includes the right information (%22 vs. \"). Therefore, I figured the problem is with motd.php. I added the line
Code: Select all
$guildMOTD = str_replace( '\"', '"', $guildMOTD );
right underneath the line
Code: Select all
$guildMOTD = urldecode($_GET['motd']);
in motd.php and everything works fine now.

I guess urldecode() converts %22 to \" rather than ", so when it gets sent to imgttftext() it displays \". Good thing I know a little PHP...
Last edited by SDraconis on Mon Jul 24, 2006 3:39 am, edited 1 time in total.
SDraconis
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Mon Jul 24, 2006 1:21 am


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron