]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Normalize OpenID URI before checking it for validity
authorSandro Santilli <strk@kbt.io>
Sat, 18 Mar 2017 09:55:14 +0000 (10:55 +0100)
committerSandro Santilli <strk@kbt.io>
Sat, 18 Mar 2017 09:56:01 +0000 (10:56 +0100)
Fixes #251

plugins/OpenID/openid.php

index ee854e8140e274433b6decd6e08be0f15e576277..8ec138ffb66f11356c2df2fb90f665c7ea03fbc7 100644 (file)
@@ -131,6 +131,7 @@ function oid_check_immediate($openid_url, $backto=null)
 
 function oid_authenticate($openid_url, $returnto, $immediate=false)
 {
+    $openid_url = Auth_OpenID::normalizeUrl($openid_url);
     if (!common_valid_http_url($openid_url)) {
         throw new ClientException(_m('No valid URL provided for OpenID.'));
     }