Merge branch 'normalized_openid' into 'master'

Normalize OpenID URI before checking it for validity

Closes #251

See merge request !139
This commit is contained in:
mmn 2017-04-06 09:12:17 +00:00
commit f85aa41adc

View File

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