more work and tests on Web page model

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3992 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
dolby-oss 2010-11-05 00:37:43 +00:00
parent 23b669a691
commit 73ac8fc93b
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ Hi
<SCRIPT>
var pos=document.URL.indexOf("name=")+5;
var txt = document.URL.substring(pos,document.URL.length);
encodedTxt = encodeURI(txt);
document.write(encodedTxt);
var txt = document.URL.substring(pos,document.URL.length); // bad thing
encodedTxt = encodeURI(txt); // sanitizer
document.write(encodedTxt); // safe use
</SCRIPT>