Skip to content
Snippets Groups Projects
Commit 80c8601d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 246d0a87
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment