• WP:3.0, NGG: 1.5.5
    Perhaps its only me but I’m finding images with spaces cause a broken url generated in the media-rss feed that NGG/piclens uses.

    After some digging I see that the nextgen-gallery/lib/media-rss.php and function “get_image_mrss_node” does not seem to be correctly encoding image links w/spaces. Function is calling the WP function esc_url() like: esc_url($image->imageURL) but this seems to strip-out the spaces so the resulting url is incorrect.

    I don’t know if this is new behavior in WP’s esc_url() function as I thought I’d read the spaces-in-filenames issue with picLens had been fixed some time ago.

    I modified couple of lines in the “get_image_mrss_node” function simply with:
    $out .= $indent . "\t<media:content url='" . esc_url(str_replace(' ','%20',$image->imageURL)) . "' medium='image' />\n";

    And similar for the thumbnail item in the function. Seems to now render correctly when I click on piclens link for the gallery.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Piclens fails with image names with spaces’ is closed to new replies.