diff options
author | Friendika <info@friendika.com> | 2011-01-02 21:25:38 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-02 21:25:38 -0800 |
commit | 527ff13f77af4a392e93b92e51774938a5ce9885 (patch) | |
tree | 65c63f8af9063f7e7e3e9491fa7d6058cc7b66a6 /mod | |
parent | 03e15bd22f41ad24eba2b97442e2dc1920efb149 (diff) | |
download | volse-hubzilla-527ff13f77af4a392e93b92e51774938a5ce9885.tar.gz volse-hubzilla-527ff13f77af4a392e93b92e51774938a5ce9885.tar.bz2 volse-hubzilla-527ff13f77af4a392e93b92e51774938a5ce9885.zip |
validate the openid url as well. We won't change it if it's bogus, but we won't use it either.
Diffstat (limited to 'mod')
-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; |