Opened 12 years ago

Last modified 12 years ago

#2488 closed Bug

Encode email "mailto:" links (Fix #2220) — at Version 3

Reported by: aspenwebdesign Owned by:
Priority: Normal Milestone: FCKeditor 2.6.4
Component: General Version: FCKeditor 2.6.3 Beta
Keywords: Confirmed IE Review+ Cc: antonio@…, Jani Ollikainen

Description (last modified by Alfonso Martínez de Lizarrondo)

This regards Fix #2220, adding the javascript based encryption of mailto links.

This fix causes problems in Internet Explorer. When you click on an encoded (by FCK) mailto link on the frontend of a website, it causes IE6 and IE7 to do two things:

  1. Open a new email window (what we want)
  1. Take the browser to a new page with "mailto:..." in the content (what we don't want)

This problem exists in IE, but not in Firefox or Safari (what else is new). It's possible this has been resolved in 2.6.3 (we're running 2.6.3 beta) but there is no mention of it.

Can someone kindly look into this? Thanks much for all your hard work!

Change History (3)

comment:1 Changed 12 years ago by Antonio Capani

Cc: antonio@… added

Hi, I confirm that the problem exists also on 2.6.3.

Moreover on my Firefox (an old one, is version I get the following error:

 [Exception... "'Permesso negato per ottenere la proprietà Object.protocolFlags' when calling method: [nsIProtocolHandler::protocolFlags]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: javascript:location.href='mailto:'+String.fromCharCode(108,101,116,116,117,114,97,100,101,108,108,97,109,97,110,111,95,111,110,108,105,110,101,64,115,101,110,115,105,116,105,118,97,115,105,109,111,110,97,46,99,111,109)+'?subject=Richiesta%20lettura%20della%20mano' :: <TOP_LEVEL> :: line 1"  data: no]
Line 1

I translate the error in english:

Permission denied when trying to access the property Object.protocolFlags...

Is it possible to configure fck 2.6.3 in order to have the old behaviour?

Thank you very much for your work.

comment:2 Changed 12 years ago by Antonio Capani

Summary: Encode email "mailto:" links (Fix #220)Encode email "mailto:" links (Fix #2220)

I think that the ticket to which aspenwebdesign is referring is #2220 and not #220. So I update the summary (I cannot update also the description).

comment:3 Changed 12 years ago by Alfonso Martínez de Lizarrondo

Component: UI : Floating PanelGeneral
Description: modified (diff)
Keywords: Confirmed IE added; mailto removed

If you change the config to FCKConfig.EMailProtection = 'none' ; you should get the old behaviour (and I think that it should be the default, because those encrypted links aren't usable by people with javascript disabled.

to fix the IE error, it seems that changing from <a href="javascript:location.href='mailto:'+String.fromCharCode(109,97,105,108,64,101,120,97,109,112,108,101,46,99,111,109)+'?'"> to <a href="javascript:void(location.href='mailto:'+String.fromCharCode(109,97,105,108,64,101,120,97,109,112,108,101,46,99,111,109)+'?')"> is enough

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy