summaryrefslogtreecommitdiff
path: root/modules/openid/tests/openid_test.module
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-10-17 16:57:48 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-10-17 16:57:48 -0400
commit88e9b836125a529b3a05f535733d20e230366783 (patch)
tree3e6dc0b76d8c0c0b87ebfaf4bcc80647e836f085 /modules/openid/tests/openid_test.module
parent654335b245eb4dd8b0a915a4295ae9b9253dfe4f (diff)
parentb9127101ffeca819e74a03fa9f5a48d026c562e5 (diff)
downloadbrdo-88e9b836125a529b3a05f535733d20e230366783.tar.gz
brdo-88e9b836125a529b3a05f535733d20e230366783.tar.bz2
Merge branch '7.15-security' into 7.x
Diffstat (limited to 'modules/openid/tests/openid_test.module')
-rw-r--r--modules/openid/tests/openid_test.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/openid/tests/openid_test.module b/modules/openid/tests/openid_test.module
index 1b0de4ec5..bcf9f425d 100644
--- a/modules/openid/tests/openid_test.module
+++ b/modules/openid/tests/openid_test.module
@@ -109,7 +109,11 @@ function openid_test_yadis_xrds() {
}
}
drupal_add_http_header('Content-Type', 'application/xrds+xml');
- print '<?xml version="1.0" encoding="UTF-8"?>
+ print '<?xml version="1.0" encoding="UTF-8"?>';
+ if (!empty($_GET['doctype'])) {
+ print "\n<!DOCTYPE dct [ <!ELEMENT blue (#PCDATA)> ]>\n";
+ }
+ print '
<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)" xmlns:openid="http://openid.net/xmlns/1.0">
<XRD>
<Status cid="' . check_plain(variable_get('openid_test_canonical_id_status', 'verified')) . '"/>