Commit c73e9ec5 authored by bcosca's avatar bcosca
Browse files

Optimize code

parent c2b873fb
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -191,15 +191,9 @@ class OpenID extends \Magic {

	/**
	*	Return OpenID response fields
	*	@return array|FALSE
	*	@return array
	**/
	function response() {
		preg_match_all('/(?<=^|&)openid\.([^=]+)=([^&]+)/',
			$_SERVER['QUERY_STRING'],$matches,PREG_SET_ORDER);
		if (!$matches)
			return FALSE;
		foreach ($matches as $match)
			$this->args[$match[1]]=urldecode($match[2]);
		return $this->args;
	}