servers/facebook.lua

changeset 16
872dc69f6039
equal deleted inserted replaced
15:1b59ba3e9508 16:872dc69f6039
1 function testers.facebook()
2 if test(q_invalid_xml, false) and test(q_invalid_host, " id='1' ")
3 and test(q_invalid_host, literal"<mechanism>X-FACEBOOK-PLATFORM</mechanism>") then
4
5 server_name = "Facebook";
6 server_version = "2.0";
7
8 elseif (test(q_invalid_xml, [=[ id=["']none['"]]=]) or test(q_invalid_xml, " id='%d+'"))
9 and (not test(q_invalid_xml, literal " xml:lang=")) and test(q_invalid_xml, " id=(.)") == '"' then
10 server_name = "Facebook";
11 server_version = "1.0";
12 end
13 end
14

mercurial