summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/OpenID')
-rw-r--r--Auth/OpenID/Consumer.php2
-rw-r--r--Auth/OpenID/Parse.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index 021c038..5e628d1 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -1181,7 +1181,7 @@ class Auth_OpenID_GenericConsumer {
// oidutil.log('Performing discovery on %s' % (claimed_id,))
list($unused, $services) = call_user_func($this->discoverMethod,
$claimed_id,
- &$this->fetcher);
+ $this->fetcher);
if (!$services) {
return new Auth_OpenID_FailureResponse(null,
diff --git a/Auth/OpenID/Parse.php b/Auth/OpenID/Parse.php
index 6c2e721..c81cb01 100644
--- a/Auth/OpenID/Parse.php
+++ b/Auth/OpenID/Parse.php
@@ -227,7 +227,7 @@ class Auth_OpenID_Parse {
if (!mb_ereg_search($regexp)) {
return false;
}
- list($match) = mb_ereg_search_getregs();
+ $match = mb_ereg_search_getregs();
return true;
}
@@ -269,7 +269,7 @@ class Auth_OpenID_Parse {
// Try to find the <HEAD> tag.
$head_re = $this->headFind();
- $head_match = '';
+ $head_match = array();
if (!$this->match($head_re, $stripped, $head_match)) {
ini_set( 'pcre.backtrack_limit', $old_btlimit );
return array();
@@ -278,7 +278,7 @@ class Auth_OpenID_Parse {
$link_data = array();
$link_matches = array();
- if (!preg_match_all($this->_link_find, $head_match,
+ if (!preg_match_all($this->_link_find, $head_match[0],
$link_matches)) {
ini_set( 'pcre.backtrack_limit', $old_btlimit );
return array();