PDA

View Full Version : RSS and urlencode!


plαdys
05-20-2008, 07:02 AM
function_feeds.php line 108 is
$enclosure = $cfgrow['siteurl'].ltrim($cfgrow['imagepath'], "./").$image;

I have changed this to the following as I found out that feed would not validate with pictures that were uploaded with spaces in the name...
$enclosure = $cfgrow['siteurl'].ltrim($cfgrow['imagepath'], "./").rawurlencode($image);

In the same way the line for defining the $thumbnail variable has to be adopted accordingly.

$thumbnail = ltrim($cfgrow['thumbnailpath'], "./")."thumb_".rawurlencode($image);


I am assuming that the imagepath and thumbnailpath variables do not contain spaces ;-)

Dennis
05-20-2008, 01:06 PM
One thread is enough.