Problems with JavaScript/unescape

Author Message
Ethan 04/02/2010 04:50 am

I have some problems if the HTML-Page contains JavaScript with unescape.
OEE works correctly if the argument of unescape consists a "%" in front of each HEX-Code. But if there is a "\x" in front of each HEX-Code OEE can not decode it.

For Example:


File: pic_1.jpg
<img src="pic_1.jpg">

File: pic_2.jpg
<script language="JavaScript">document.write(unescape("%3C%69%6D%67%20%73%72%63%3D%22%70%69%63%5F%32%2E%6A%70%67%22%3E"))</script>

File: pic_3.jpg
<script language="JavaScript">document.write(unescape("\x3C\x69\x6D\x67\x20\x73\x72\x63\x3D\x22\x70\x69\x63\x5F\x33\x2E\x6A\x70\x67\x22\x3E"))</script>


In this Example the files "pic_1.jpg" and "pic_2.jpg" were downloaded correctly.
But "pic_3.jpg" wasn't downloaded.
Firefox shows all three pictures.

Am I doing something wrong?

I hope you can help me.
Oleg Chernavin 04/02/2010 04:52 am
Thank you! I improved the code that handles such scripts. As a temporary workaround, enable script calculations on the Project Properties - Parsing section.

Best regards,
Oleg Chernavin
MP Staff