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>
|
||||
|
||||
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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue