UnitTest( AXE_GET function )

Output

%u3008scr%u0131pt%u3009%u212fval(%uFF07al%u212Frt("XSS")%u02C8)%u2329/scr%u0131pt%u232A
%u3008scr%u0131pt%u3009%u212fval(%uFF07al%u212Frt("XSS")%u02C8)%u2329/scr%u0131pt%u232A

Sources

/unittests/axe-get.unit.test.asp

<!--#include virtual="/lib/unit-tests.asp"-->
<!--#include virtual="/lib/axe/Parsers/json2.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en">
    <head>
        <title>AXE - Unit Test - AXE_GET</title>
        <!--// meta tags //-->
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
        <!--// link tags //-->
        <link rel="stylesheet" type="text/css" media="screen" href="/lib/unit-tests.css" />
    </head>
    <body>
        <div id="container">
            <div id="container-hd">
                <h1>UnitTest( AXE_GET function )</h1>
            </div>
            <div id="container-bd">
 
<h2>Output</h2>
<div class="code"><pre><%
 
' http://labs.evolved.com.br/unittests/axe-get.unit.test.asp?i=%u3008scr%u0131pt%u3009%u212fval%28%uFF07al%u212Frt%28%22XSS%22%29%u02C8%29%u2329/scr%u0131pt%u232A
 
Response.write( Request.QueryString("i") )
Response.write( vbNewline )
Response.write( AXE_GET("i") )
 
%></pre></div>
 
            </div>
            <div id="container-ft">
                <h2>Sources</h2>
                <h3><%= Request.ServerVariables("SCRIPT_NAME") %></h3>
                <div class="code"><%= geshify( loadTextFile( Server.mapPath( Request.ServerVariables("SCRIPT_NAME") ) ), "asp" ) %></div>
            </div>
        </div>
        <!--// javascript tags //-->
    </body>
</html>
<script language="javascript" runat="server">
function AXE_GET(k) {
    var v = "",
        q = Request.ServerVariables("QUERY_STRING");
    try {
        v = decodeURIComponent(q);
        v = Request.QueryString(k);
    } catch(Ex) {
        var c = String(q).split('&'),
            j = k + '=';
        for(var i = 0, len = c.length; i < len; i++) {
            if( c[i].indexOf(j) === 0 ) {
                v = c[i].substring(j.length);
            }
        }
    }
    return v;
}
</script>