[mochikit] Base.js unescape reassignment and intrusion protection systems

2009-07-16 Thread Michael
I have found a problem with MochiKit Base.js and the intrusion protection system at work. The IPS truncates Base.js because it assigns the unescape() function to a variable (in parseQueryString(), line 1225 in version 1.4.2 of Base.js). The IPS response is documented here:

[mochikit] Re: Base.js unescape reassignment and intrusion protection systems

2009-07-16 Thread Per Cederberg
The reassignment is for backwards compability if I understand it correctly: if (typeof(decodeURIComponent) != undefined) { decode = decodeURIComponent; } else { decode = unescape; } From the JavaScript 1.5 guide at Mozilla: The escape and

[mochikit] Re: Base.js unescape reassignment and intrusion protection systems

2009-07-16 Thread Bob Ippolito
There are various ways it could be rewritten, but without knowing exactly how stupid the IPS is it's hard to say which permutation would pass its test. Someone who can reproduce this issue should spend some time with it and produce a patch. On Thu, Jul 16, 2009 at 6:34 PM,