Closed GoogleCodeExporter closed 8 years ago
sorry, forgot to mention, this issue is related to oauth-php Revision 1219
Original comment by laurence...@gmail.com
on 1 Jun 2010 at 9:24
So you're saying that $_SERVER['HTTP_HOST'] = 'somehost:someport' and
$_SERVER['HTTP_PORT'] = 'someport', which means the normalized http-host is
wrongly 'somehost:someport:someport', right?
I remember having this issue once, but I thought I had fixed it. Anyways, will
look into it again, and write a proper unit-test to make sure it works
properly..
-Morten
Original comment by morten.f...@gmail.com
on 12 Jun 2010 at 8:01
We ran into this issue also at the Apache Shindig PHP version which uses this
OAuth library:
https://issues.apache.org/jira/browse/SHINDIG-1385
Our proposed solution was to exchange HTTP_HOST with SERVER_NAME
Index: php/external/OAuth/OAuth.php
===================================================================
250c250
< '://' . $_SERVER['HTTP_HOST'] .
---
> '://' . $_SERVER['SERVER_NAME'] .
Original comment by bashofm...@gmail.com
on 19 Jul 2010 at 9:41
I just confirmed this is still happening and the above solution fixed it.
Original comment by lgell...@gmail.com
on 10 Sep 2010 at 10:15
This issue was closed by revision r1261.
Original comment by morten.f...@gmail.com
on 29 Mar 2011 at 5:49
Original issue reported on code.google.com by
laurence...@gmail.com
on 1 Jun 2010 at 9:22