iScramble causing some issues?

Posted by amnesia 
iScramble causing some issues?
December 05, 2010 06:36AM
Hi there guys,

I was told by a few people that news aggregators are having issues with my site.

If you take a look at [paper.li] for example, you'll see that news from Phorum comes up as

Qatar 2022 Announcement and reaction
iloveqatar.net - start && end > -1) { if (start > -1) { var res = data.substring(start, end); start = res.indexOf('>') + 1; res = res.substring(start); if (res.length != 0) { eval(res); } } cursor = end + 1; } } } ...

A quick look at my source code shows that this is the issue:

<script type="text/javascript">//<![CDATA[
function iscramble_eval_javascript(data)
{
var cursor = 0; var start = 1; var end = 1;
while (cursor < data.length && start > 0 && end > 0) {
start = data.indexOf('<script', cursor);
end = data.indexOf('</script', cursor);
if (end >start && end > -1) {
if (start > -1) {
var res = data.substring(start, end);
start = res.indexOf('>') + 1;
res = res.substring(start);
if (res.length != 0) {
eval(res);
}
}
cursor = end + 1;
}
}
}
//]]></script>

Is there a way to fix this?

___________________
iloveqatar.net



Edited 1 time(s). Last edit at 12/05/2010 06:38AM by amnesia.
Re: iScramble causing some issues?
December 05, 2010 07:52AM
News aggregators you say. Does it happen for other aggregators as well or is this only one example that you've hit upon? I'd say that the aggregator is not doing a good job here. It should not display javascript code blocks.

To solve it, you could try upgrading to a more recent Phorum. This code is produced by the Spam Hurdles modules and in recent versions, we have included a fully rewritten Spam Hurdles module that applies the iscramble code in a different way. (And of course it is good to keep your software up-to-date, even without looking at this issue.)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: iScramble causing some issues?
December 06, 2010 02:17AM
hey there,
I've experienced this with bit.ly and twitit so far.

I'll go ahead and update phorum now. Hopefully not screwing anything up since I've made quite a lot of tweaks that I stupidly forgot to keep a track of :P
Re: iScramble causing some issues?
December 06, 2010 03:00AM
Well, at least you can document the required tweaks this tim e ;-) Good luck with your upgrade!


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: iScramble causing some issues?
December 06, 2010 06:41AM
If you haven't started already, I would suggest using this upgrade path: [www.phorum.org] It will allow you to backtrack easily if those tweaks become crucial.

You can also use a program like TortiseSVN to view the differences between your Phorum files and the clean files of whatever version you are currently using. (The same TortiseSVN can be used to download older versions of Phorum through the tags).


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login