certains apostrophes disparaissent après passage de la fonction striptagsandcut

More
10 months 2 days ago - 10 months 1 day ago #69595 by AlainR
Bonjour.
Nous voyons une différence de traitement entre les apostrophes ’ et '.
La seconde disparaît après que le texte soit passé par la fonction striptagsandcut. Une façon de contourner cela et de remplacer "return htmlspecialchars($text1, ENT_QUOTES, 'UTF-8') . $text2;" par "return htmlspecialchars($text1, ENT_NOQUOTES, 'UTF-8') . $text2;" à la fin de la fonction dans le fichier /components/com_flexicontent/classes/helpers/html.php

Est-ce un problème connu ?
et est-ce problématique de remplacer ENT_QUOTES par ENT_NOQUOTES ?

Cette question des apostrophes est surtout problématique pour la recherche, car certains textes ne sont absolument pas trouvés selon que l'on cherche p.ex. "l'âge d'or" mais que le texte est écrit avec l'autre apostrophe : "l’âge d’or"

Merci d'avance pour la réponse.
Cdt.
Last edit: 10 months 1 day ago by ggppdk.

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

More
10 months 2 days ago #69596 by micker
a mon avis cela peut venir de l'encodage choisis dans le champs (fonction de nettoyage et de securité)
Pouvez vous regarder ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 months 2 days ago - 10 months 2 days ago #69597 by AlainR
Merci Micker.
Parlez-vous de l'éditeur (JCE) ? ou des paramètres du champ FLEXIcontent ?
Last edit: 10 months 2 days ago by AlainR.

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

More
10 months 1 day ago #69598 by ggppdk
Hello

ENT_QUOTES
can be replaced with ENT_COMPAT

ENT_COMPAT will encode double quotes but it leave single quotes unencoded

and it should not create problems in our templates (or very little problems which can be fixed)

so you can use ENT_COMPAT now, (do not make any other changes to the method)
will make this change for next release


-- 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
10 months 1 day ago #69603 by ggppdk
Hello

we have included fix in new release


-- 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
10 months 1 day ago #69605 by AlainR
Many thanks for quick answer and resolving this problem.

ggppdk wrote: do not make any other changes to the method


How is it possible to change or add something to the method ?
Because a developer did that and now I have to report those modifications on each FLEXIcontent upgrade...

Many thanks again and best regards.

p.s. : the problem with search component is a real problem - how to solve it ?

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

More
10 months 1 day ago #69613 by ggppdk
Hello

- install new version v3.2.1.4

and re-index both
basic and advanced search indexes

and see if searching that particular text is working


-- 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
9 months 1 week ago #69933 by AlainR
Hello.
Thank you for your answer. I updated et re-index both, I cannot reproduce reliably, because one of our developer has hacked advanced search plugin :unsure:

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

More
9 months 1 week ago #69936 by ggppdk
Hello

zip the plugin and send me a download link via a PM


-- 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.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.