- Patch #587766 by c960657: OpenID test XRI protocol improperly.

merge-requests/26/head
Dries Buytaert 2010-04-07 07:38:29 +00:00
parent 246d0a874c
commit 80c8601d60
1 changed files with 1 additions and 2 deletions

View File

@ -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) {