Will it work on this code?
-
So a couple of weeks ago I was looking over my site and I found this odd javascript code at the bottom of the “contact us” page in my website. I tried looking to see where it was located, but I’ve had no luck so far. Thinking it was just related to that page, I deleted and re-added the page (after disabling and re-enabling my plugins). No luck.
Then the other day I decided to check all the pages, and sure enough, the code appears on all of them. This prompted me to check the footer.php file, but the code isn’t there either.
Here’s the code in question:
/* <![CDATA[ */ (function(){try{var s,a,i,j,r,c,l=document.getElementsByTagName("a"),t=document.createElement("textarea");for(i=0;l.length-i;i++){try{a=l[i].getAttribute("href");if(a&&a.indexOf("/cdn-cgi/l/email-protection") > -1 && (a.length > 28)){s='';j=27+ 1 + a.indexOf("/cdn-cgi/l/email-protection");if (a.length > j) {r=parseInt(a.substr(j,2),16);for(j+=2;a.length>j&&a.substr(j,1)!='X';j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}j+=1;s+=a.substr(j,a.length-j);}t.innerHTML=s.replace(/</g,"<").replace(/>/g,">");l[i].setAttribute("href","mailto:"+t.value);}}catch(e){}}}catch(e){}})(); /* ]]> */The result is that when someone plugs information into the form, that information is erased (or sent somewhere else, which is even worse, since it could potentially capture private information), and the user is bumped back to the home page of the site.
So my question is, does this plugin work on code like this, and will it restore my site’s original functionality? I’d rather not download and install the plugin only to find out I’ve wasted my time.
Thanks.
The topic ‘Will it work on this code?’ is closed to new replies.