Fixed: Backslashed Double Quotes in Guild Info

Theme, template, layout, or image issues

Fixed: Backslashed Double Quotes in Guild Info

Postby mrmuskrat » Wed Aug 16, 2006 11:25 am

If your guild info has double qoutes (and possibly newlines) in it. It will end up looking like:

\"blah blah blah\"\n\"blah blah\"


I found [1.7.0] Guild Info Box has \n in it and extended the fix shown there to cover double quotes as well.

Find this;
Code: Select all
if( !empty($guild['Info']) )
    
$this->add_value'guild_info_text'$guild['Info'] ); 


Replace with this:
Code: Select all
if( !empty($guild['Info']) )
{
    
$guild['Info'] = str_replace('\n'"\n"$guild['Info']);
    
$guild['Info'] = str_replace('\"''"'$guild['Info']);        
    
$this->add_value'guild_info_text'$guild['Info']);


Then do a guild update and you should now have a clean Guild Info page. :thumleft:
Last edited by mrmuskrat on Wed Aug 16, 2006 11:28 am, edited 1 time in total.
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

Return to Appearance

Who is online

Users browsing this forum: No registered users and 1 guest

cron