Title-Tag of Pictures in Category-View are not escaped

Phoca Gallery - image gallery extension
lacoste89
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Jun 2012, 00:05

Title-Tag of Pictures in Category-View are not escaped

Post by lacoste89 »

Hello, I set up Phoca Gallery on my Joomla 2.5.5.

In Catergory-View I had the Problem, that the description of Pictures was not shown correctly. I checked the source-code and founded, that the title-tag is not escaped.

I found the Bug in following file:
/components/com_phocagallery/views/category/tmpl/default_images.php

On line 40 is written:

Code: Select all

echo ' title="'.$value->odesctitletag.'"';
I edited this line to:

Code: Select all

echo ' title="'.htmlentities ($value->odesctitletag, ENT_QUOTES, 'UTF-8').'"';
Now the problem is solved. Please add this solution to your next Update from Phoca Gallery. This component is realy great.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title-Tag of Pictures in Category-View are not escaped

Post by Jan »

Hi, thank you for this info.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title-Tag of Pictures in Category-View are not escaped

Post by Jan »

Hi, set in 3.2.1

Jan
If you find Phoca extensions useful, please support the project
Post Reply