Commit 15429f3a authored by Bong Cosca's avatar Bong Cosca
Browse files

Optimize code

parent a9d8cc54
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -156,9 +156,10 @@ class OpenID extends \Magic {
	*	@param $proxy string
	**/
	function verified($proxy=NULL) {
		foreach ($_GET as $key=>$val)
			if (preg_match('/^openid_(ns_ax|ax_)?(.+)/',$key,$match))
				$this->args[str_replace('_','.',$match[1]).$match[2]]=$val;
		preg_match_all('/(?<=^|&)openid\.([^=]+)=(.+?)(?=&|$)/',
			$_SERVER['QUERY_STRING'],$matches,PREG_SET_ORDER);
		foreach ($matches as $match)
			$this->args[$match[1]]=urldecode($match[2]);
		if ($this->args['mode']!='error' && $url=$this->discover($proxy)) {
			$this->args['mode']='check_authentication';
			$var=array();