My favorites
▼
|
Sign in
lightopenid
Lightweight OpenID library.
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
56
attachment: hyves.patch
(1.8 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- openid.php 2011-10-27 21:18:29.000000000 +0200
+++ openid_hyves.php 2012-02-10 14:53:03.047994178 +0100
@@ -423,8 +423,11 @@
$next = false;
if (isset($headers['x-xrds-location'])) {
- $url = $this->build_url(parse_url($url), parse_url(trim($headers['x-xrds-location'])));
- $next = true;
+ $new_url = $this->build_url(parse_url($url), parse_url(trim($headers['x-xrds-location'])));
+ if ($url != $new_url) {
+ $url = $new_url;
+ $next = true;
+ }
}
if (isset($headers['content-type'])
@@ -499,14 +502,20 @@
$content = $this->request($url, 'GET', array(), true);
if (isset($this->headers['x-xrds-location'])) {
- $url = $this->build_url(parse_url($url), parse_url(trim($this->headers['x-xrds-location'])));
- continue;
+ $new_url = $this->build_url(parse_url($url), parse_url(trim($this->headers['x-xrds-location'])));
+ if ($url != $new_url) {
+ $url = $new_url;
+ continue;
+ }
}
$location = $this->htmlTag($content, 'meta', 'http-equiv', 'X-XRDS-Location', 'content');
if ($location) {
- $url = $this->build_url(parse_url($url), parse_url($location));
- continue;
+ $new_url = $this->build_url(parse_url($url), parse_url($location));
+ if ($url != $new_url) {
+ $url = $new_url;
+ continue;
+ }
}
}
Powered by
Google Project Hosting