I have found a bug in the Plugin when the images title have Double Quotation Marks. This interferes with html.
So, this should the used with "htmlspecialchars".
Everywhere there is:
Code: Select all
title="'.$image->title.'"
Code: Select all
title="'.htmlspecialchars($image->title).'"
Code: Select all
alt="'.$image->title.'"
Code: Select all
alt="'.htmlspecialchars($image->title).'"
Code: Select all
$output .= '<a class="'.$button->methodname.'" title="'.htmlspecialchars($image->title).'" href="'. JRoute::_($image->link).'"';
Code: Select all
$output .= '<img class="pg-image" src="'.$imgLink.'" alt="'.htmlspecialchars($image->title).'" width="'.$correctImageRes['width'].'" height="'.$correctImageRes['height'].'" />';
Code: Select all
$output .= '<img class="pg-image" src="'.JURI::base(true).'/'.$image->linkthumbnailpath.'" alt="'.htmlspecialchars($image->title).'" width="'.$imageOrigWidth.'" height="'.$imageOrigHeight.'" />';
Can you fix it please?
Thanks
Nuno Leite