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
78
attachment: diff.txt
(846 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/openid.php b/openid.php
index b9c80cd..be71d2e 100644
--- a/openid.php
+++ b/openid.php
@@ -213,7 +213,15 @@ class LightOpenID
if($update_claimed_id) {
# Updating claimed_id in case of redirections.
$effective_url = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
- if($effective_url != $url) {
+
+ $url_parts = parse_url($url);
+ $effective_url_parts = parse_url($effective_url);
+
+ // some versions of cURL don't handle fragments well, so ignore them
+ unset($url_parts['fragment']);
+ unset($effective_url_parts['fragment']);
+
+ if($effective_url_parts != $url_parts) {
$this->identity = $this->claimed_id = $effective_url;
}
}
Powered by
Google Project Hosting