servers/facebook.lua

changeset 16
872dc69f6039
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/servers/facebook.lua	Fri Aug 10 13:03:06 2012 +0100
@@ -0,0 +1,14 @@
+function testers.facebook()
+	if test(q_invalid_xml, false) and test(q_invalid_host, " id='1' ")
+		and test(q_invalid_host, literal"<mechanism>X-FACEBOOK-PLATFORM</mechanism>") then
+		
+		server_name = "Facebook";
+		server_version = "2.0";
+
+	elseif (test(q_invalid_xml, [=[ id=["']none['"]]=]) or test(q_invalid_xml, " id='%d+'"))
+		and (not test(q_invalid_xml, literal " xml:lang=")) and test(q_invalid_xml, " id=(.)") == '"' then
+		server_name = "Facebook";
+		server_version = "1.0";
+	end
+end
+

mercurial