Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...mailto: obfuscation in DNN 5.x and 6.xmailto: obfuscation in DNN 5.x and 6.x
Previous
 
Next
New Post
2/27/2012 6:57 AM
 

We have recently begun using DNN 5.6.2 and 6.1.3 for new clients after a couple of years on 4.8.  Among the many improvements are a couple of problems that I cannot pin down, including mailto obfuscation.

In the plain text "Basic Text Box" view of the HTML module the email link is stored as simple HTML with no obfuscation. 

<a href="mailto:ewds@strath.ac.uk?subject=some%20subject">email </a>

 When the content is rendered javascript code is injected to re-configure the content as 

<a .uk?subject="some%20subject"" href=" window.location.replace('ma'+'ilto:'+'ewds'+'@'+'strath'+'.ac')">email </a>

I cannot find anywhere to change the javascript injection to cope with "3 part" domain names

 
New Post
2/27/2012 10:32 PM
 
most odd, not something i've seen. We do have a core function (CloakText) which can also be called by the core FormatEmail function which does mailto obfuscation, but it doesnt split up the mailto in that way (it actually encodes each character in turn so has no domain name logic). Is this in a particular module you're seeing it or in all html modules? Also can you check what editor provider you're using (the defaultProvider value of the htmlEditor node in web.config) as I'm not aware of all providers, perhaps it's a function provided by one of them.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/28/2012 7:10 PM
 
Which HTML editor provider are you using? (see web.config file or Host > HTML Editor config)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/29/2012 5:02 AM
 

I must confess I had jumped to the assumption that because I was seeing this in our new 5.x and 6.x instances it must have been something in these new versions.  As this is clearly not the case from the responses so far (and such a quick response is really great) I went back and had a closer look.

It turns our the culprit is PageBlaster.  We always install PageBlaster for the caching and did the same for these new versions.  What we did not spot is a rule in the config called "Mailto cloaker" that is replacing the mailto links with the javascript that I reported.

Commenting out the rule has solved the problem.  As a matter of interest the rule is

<rule>
                    <ruleName>MailTo Cloaker</ruleName>
                    <searchFor>href=['"]?mailto:(\w+[a-zA-Z0-9.\-_]*)@(\w+)\.(\w+)['"]?</searchFor>
                    <replaceWith>href=" window.location.replace('ma'+'ilto:'+'$1'+'@'+'$2'+'.$3')"</replaceWith>
</rule>

We will probably try to rewrite the regex to accommodate uk email addresses, but for now we have it fixed.

Thanks again for the quick response that pointed us in the right direction.

 
New Post
2/29/2012 5:21 PM
 
No problem, glad you found the issue and thanks for posting the details back here -it may end up helping someone else as multiple level top-level domains are pretty common -it may be worth contacting Snapsis and seeing if John will add the fix to a future release.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...mailto: obfuscation in DNN 5.x and 6.xmailto: obfuscation in DNN 5.x and 6.x


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out