spambotEmailProtector not using 'jsLocation'

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 9, 2013   (RSS)

By aev - July 8, 2013

Hi,

on this page spambotEmailProtector is not putting the mailto inside a Javascript 'window.location' even if the "jsLocation" is set to true. The result is non-working email addresses when clicking on them, at least on my Mac using Outlook.

http://mrb.no/?s=nav&r=Om-oss-Hvem-er-vi-10

The mailto's are created with this code:

<a href="mailto:<?php echo $record['mail'] ?>"><?php echo $record['mail'] ?></a>

If I create a mailto using the wysiwyg editor on the same site the 'window.location' is used and everything works fine.

Anyone seen this before? Any suggestions?

-aev-

By gregThomas - July 9, 2013

Hi -aev-,

I've fixed the issue with the plugin, the problem was that spam bot e-mail protector was adding both comment and tags to the e-mail addresses, which a lot of browsers don't filter out, I've switched off a couple of the encoding features which aren't supported by modern browsers. The encoding options now look as follows:

// Encoding Options - to disable an encoding method set to false;
$GLOBALS['SEP_ENCODING_METHODS']['decEntity'] = true;
$GLOBALS['SEP_ENCODING_METHODS']['hexEntity'] = true;
$GLOBALS['SEP_ENCODING_METHODS']['urlEncoding'] = true;
$GLOBALS['SEP_ENCODING_METHODS']['jsUnicode'] = true;
$GLOBALS['SEP_ENCODING_METHODS']['bdo'] = false;
$GLOBALS['SEP_ENCODING_METHODS']['comments'] = false;
$GLOBALS['SEP_ENCODING_METHODS']['tags'] = false;
$GLOBALS['SEP_ENCODING_METHODS']['jsLocation'] = true;


These changes have also been saved to the development copy of the plugin, so on the next release these will be the default settings.

Cheers!

Greg

Greg Thomas







PHP Programmer - interactivetools.com