diff options
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php index 079c835b5..eb27de06e 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -117,7 +117,8 @@ function settings_post(&$a) { // If openid has changed or if there's an openid but no openidserver, try and discover it. if($openid != $a->user['openid'] || (strlen($openid) && (! strlen($openidserver)))) { - if(strlen($openid)) { + $tmp_str = $openid; + if(strlen($tmp_str) && validate_url($tmp_str)) { logger('updating openidserver'); require_once('library/openid.php'); $open_id_obj = new LightOpenID; |