1
0
Fork 0

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:
Friendika 2011-01-02 21:25:38 -08:00
parent 03e15bd22f
commit 527ff13f77

View file

@ -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;