[RESOLU] "/" dans l'infobulle

More
11 years 11 months ago - 11 years 11 months ago #32073 by eytanpierre
Bonjour,

Je tiens juste à vous informer d'un petit bug : le template Blog de Flexicontent ajoute automatiquement un lien hypertexte et une infobulle sur les images des items.

(Fonction géniale ! :D Merci ! Peut-être ajouter un paramètre permettant de choisir l'image à droite ou à gauche de l'article se serait parfait ... Mais c'est déjà très pratique !!!)

Le bug est que dans l'infobulle, dès qu'il y a une apostrophe «'», celle-ci est précédée d'un flash «/».

Exemple : "L'idée" devient "L/'idée". Et ceci seulement dans le template Blog de FLEXIContent ...

Etrange :roll: ...

(EN : the bug is in the tooltip of the image in the FLEXIContent Blog Template, "L'idée" becomes "L/'idée")

Merci pour votre travail FLEXIContent !
Last edit: 11 years 11 months ago by eytanpierre.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32081 by ggppdk
Hello,
there is a parameter to avoid making titles to be links

but you do not ask this, right ??

You say that quote in titles get an ESCAPE-character \
is that it?

where in category layout of blog template?

the popup tip of item titles ? what ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32084 by eytanpierre
Yes, I am asking about the title of the item, in the toolips of the image.
I send to you a link where we can see the problem ...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32088 by ggppdk
mmm, the text is added as HTML tag parameter so quotes must be escaped,

since we use double quotes
maybe we should only escape double quotes:

try replacing in category_items.php:
All cases of
addslashes($items[$i]->title)
with: (beware notice the c after 'add' below)
addcslashes($items[$i]->title, '"')

and test


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32090 by eytanpierre
Yes !!! It's working now !!!!

Thank you !!! :D :D :D

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #32103 by ggppdk
This is more correct:
Code:
htmlspecialchars($items[$i]->title, ENT_COMPAT, 'UTF-8')
instead of
Code:
addcslashes($items[$i]->title, '"')

encodes HTML special characters and double quotes (excluding single quotes) and treats properly utf8,

the above will also prevent possible javascript attack problems with <script>, although it is not possible to write scripts inside item's title due to joomla filtering ...

-- so please use the old option or the second solution given above


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.363 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline