Fri, 10 Aug 2012 13:03:06 +0100
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
16
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 | function testers.facebook() |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 | if test(q_invalid_xml, false) and test(q_invalid_host, " id='1' ") |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 | and test(q_invalid_host, literal"<mechanism>X-FACEBOOK-PLATFORM</mechanism>") then |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 | |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 | server_name = "Facebook"; |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 | server_version = "2.0"; |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
7 | |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
8 | elseif (test(q_invalid_xml, [=[ id=["']none['"]]=]) or test(q_invalid_xml, " id='%d+'")) |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 | and (not test(q_invalid_xml, literal " xml:lang=")) and test(q_invalid_xml, " id=(.)") == '"' then |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 | server_name = "Facebook"; |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 | server_version = "1.0"; |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
12 | end |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 | end |
872dc69f6039
Add Facebook fingerprints (and move test for FBv1 from the ejabberd fingerprint)
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 |