Ampersands in flickr Title Fields Entified

xolotl - February 1, 2009 - 05:50
Project:Flickr Sync
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Ampersands in flickr title fields are sync'd to nodes as &.

#1

elly - February 28, 2009 - 17:57

It's true, and, HTML in captions gets entified, too, I've noticed... regardless of what you've got as your default input type on the site.

#2

elly - October 6, 2009 - 01:09

it might present some kind of security hole to import unscrubbed html, but i got around the entifying by changing line 671 from

    $content .= '<p>'. htmlentities(html_entity_decode($flickr_photo['description'])) .'</p>';

to

    $content .= '<p>'. $flickr_photo['description'] .'</p>';

 
 

Drupal is a registered trademark of Dries Buytaert.