Browse Source

validate the openid url as well. We won't change it if it's bogus, but we won't use it either.

pull/1/head
Friendika 11 years ago
parent
commit
527ff13f77
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mod/settings.php

+ 2
- 1
mod/settings.php 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;


Loading…
Cancel
Save