validate the openid url as well. We won't change it if it's bogus, but we won't use it either.
This commit is contained in:
parent
03e15bd22f
commit
527ff13f77
|
@ -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 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($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');
|
logger('updating openidserver');
|
||||||
require_once('library/openid.php');
|
require_once('library/openid.php');
|
||||||
$open_id_obj = new LightOpenID;
|
$open_id_obj = new LightOpenID;
|
||||||
|
|
Loading…
Reference in a new issue