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:
parent
23b669a691
commit
73ac8fc93b
|
@ -7,9 +7,9 @@ Hi
|
||||||
<SCRIPT>
|
<SCRIPT>
|
||||||
|
|
||||||
var pos=document.URL.indexOf("name=")+5;
|
var pos=document.URL.indexOf("name=")+5;
|
||||||
var txt = document.URL.substring(pos,document.URL.length);
|
var txt = document.URL.substring(pos,document.URL.length); // bad thing
|
||||||
encodedTxt = encodeURI(txt);
|
encodedTxt = encodeURI(txt); // sanitizer
|
||||||
document.write(encodedTxt);
|
document.write(encodedTxt); // safe use
|
||||||
|
|
||||||
</SCRIPT>
|
</SCRIPT>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue