Skip to content

Commit

Permalink
https://github.com/FriendsOfREDAXO/email_obfuscator/issues/2
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias authored and tobias committed Dec 30, 2019
1 parent 2c7255e commit 324a96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class.emailobfuscator.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static function encodeEmailJavaScript($email, $text = "", $attributesBef
if ($method == 'rot13_javascript' || $method == 'rot13_javascript_css') {
// javascript version
$encoded_mail_tag = str_rot13('<a ' . $attributesBeforeHref . 'href=\\"mailto:' . $email . '\\"' . $attributesAfterHref . '>' . $text . '</a>');
$encoded = "<script type=\"text/javascript\">";
$encoded = "<script>";
$encoded .= "/* <![CDATA[ */";
$encoded .= "document.write(\"" . $encoded_mail_tag . "\".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c<=\"Z\"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));";
$encoded .= "/* ]]> */";
Expand Down

0 comments on commit 324a96d

Please sign in to comment.