[RESOLU] "/" dans l'infobulle

More
5 years 7 months ago - 5 years 7 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: 5 years 7 months ago by eytanpierre.

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

More
5 years 7 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 review. Thanks!

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

More
5 years 7 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
5 years 7 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 review. Thanks!

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

More
5 years 7 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
5 years 7 months ago #32103 by ggppdk
This is more correct:
htmlspecialchars($items[$i]->title, ENT_COMPAT, 'UTF-8')
instead of
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 review. Thanks!

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

More
5 years 7 months ago #32106 by eytanpierre
I tried the second option, it's working !!!

Thank you !!!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.