Index: modules/openid/openid.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/openid/openid.inc,v retrieving revision 1.27 diff -u -9 -p -r1.27 openid.inc --- modules/openid/openid.inc 22 Mar 2010 18:48:20 -0000 1.27 +++ modules/openid/openid.inc 5 Apr 2010 22:45:28 -0000 @@ -216,23 +216,22 @@ function _openid_select_service(array $s return $selected_service; } /** * Determine if the given identifier is an XRI ID. */ 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) { return TRUE; } return FALSE; }