summaryrefslogtreecommitdiff
path: root/modules/openid
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-07 07:38:29 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-07 07:38:29 +0000
commit80c8601d60eb3a9eb26381ab311445c29f9708b6 (patch)
tree9b8679642a1a51a263752469d7a55e51e8c755c6 /modules/openid
parent246d0a874c7a849c5a4592fff19dbe6fc7d539ac (diff)
downloadbrdo-80c8601d60eb3a9eb26381ab311445c29f9708b6.tar.gz
brdo-80c8601d60eb3a9eb26381ab311445c29f9708b6.tar.bz2
- Patch #587766 by c960657: OpenID test XRI protocol improperly.
Diffstat (limited to 'modules/openid')
-rw-r--r--modules/openid/openid.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc
index a19f483c7..14a28486f 100644
--- a/modules/openid/openid.inc
+++ b/modules/openid/openid.inc
@@ -222,11 +222,10 @@ function _openid_select_service(array $services) {
*/
function _openid_is_xri($identifier) {
// Strip the xri:// scheme from the identifier if present.
- if (stripos($identifier, 'xri://') !== FALSE) {
+ if (stripos($identifier, 'xri://') === 0) {
$identifier = substr($identifier, 6);
}
-
// Test whether the identifier starts with an XRI global context symbol or (.
$firstchar = substr($identifier, 0, 1);
if (strpos("=@+$!(", $firstchar) !== FALSE) {