| 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 |