Perrin Harkins wrote:
Erik Norgaard wrote:
So: where does the alt, title and class attributes in the image element come from???

This is something you will have to figure out by experimenting. Print the contents of $item->{img} to your error_log. Take the item.img part out of your template. Change things until you understand where it's coming from.

Yes .... taking a few hours off the bug is obvious, in the parsing for the source path of the image:

  if (my ($src) = $text =~ /<img.*?src="(.*?)">/io) {

Should be:

  if (my ($src) = $text =~ /<img.*?src="([^"]*)".*?>/io) {

The first takes all the attributes of the original image ... DUH!

Well, thanks.

Cheers Erik

--
Ph: +34.666334818                      web: http://www.locolomo.org

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to