View Full Version : Special characters in photo description not showing right
February 11th, 2009, 02:08 PM
This person used an ampersand and quotes in the photo description field when adding a layout and this is what we see:
Created with the awesome &quot;Pure Passion&quot; Feb 09 collab.
Real Men Knit - Photo Gallery (http://www.mylifeandscrap.com/gallery/showphoto.php?photo=198)
How can we fix this?
February 11th, 2009, 07:28 PM
Thats because we do not necessarily show html in fields for security.
You could find the following code in showphoto.php and add the line in bold
$desc = un_htmlspecialchars($desc);
if ( VB3_ENHANCEDINT == "on" )
$desc = un_htmlspecialchars(convert_markups($desc));
$desc = convert_returns(convert_markups($desc));
February 12th, 2009, 12:21 AM
Thank you, I think that fixed it.
February 12th, 2009, 12:28 AM
oops, it fixed it in the description, but we have the same issue in the title:
Sweet & Sassy - Photo Gallery (http://www.mylifeandscrap.com/gallery/showphoto.php?photo=195)
Can we fix that one, too?
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.