Javascript problem on email address

More
9 years 9 months ago #52317 by garfran
Hello,
I have Joomla 3.3.6 and Flexicontent 2.2.0 and on all email address links, I have an alert message:
"This email address is protected against spam. You must activate Javascript to see it".
But I don't kow what to do for that; Everything seems OK.
Do you have a solution?
Please see an example of the error on this page (in french, sorry!):
omnes-airfrance.com/philippe-silberzhan
Thank you

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

More
9 years 9 months ago #52325 by ggppdk
Hello

single quote in the text of Email title breaks the JS

this is already fixed in the latest GitHub version

Try editting email.php and replace:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, $text, 0) .$posttext :


with:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, flexicontent_html::escape($text), 0) .$posttext :


-- 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
9 years 9 months ago #52336 by garfran
Hello,
Thank you for this reply. I changed it in line 332 and 337 in ftp folder: /www/plugins/flexicontent_fields/email
but it doesn't seem to change.

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

More
9 years 9 months ago #52337 by ggppdk
Hello

try this:

Try editting email.php and replace:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, $text, 0) .$posttext :


with:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, htmlspecialchars($text, ENT_COMPAT, 'UTF-8'), 0) .$posttext :


Also finally try this:
edit the item and find the email field, and set an email title-text without single quote


-- 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
9 years 9 months ago #52339 by garfran
OK, I changed it in line 332 and 337 as seen before. But no success.
Now, look at your next suggestion. You say:
"edit the item and find the email field, and set an email title-text without single quote"
I go in the email field configuration, and I see optionnal properties :Title (used as Link Text)
Is it there I have to change?
I have option activate YES/NO and defaut use.

What is a good news is that I tried to insert an email address in the text of an item, and it's working properly.
The problem remains with the email field only.

Slts

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

More
9 years 8 months ago #52351 by ggppdk
Hello

i see that you no longer have the message ?


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