khosro / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

Using SCRIPT_URI instead of REQUEST_URI #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the `OAuthRequest` constructor takes no arguments, a default is used for 
the internal `$uri` argument used.

However, this uri is constructed from the REQUEST_URI server variable, which 
does not contain url scheme and host+port.

Therefore, OAuth verification fails when using this module on a non-standard 
port. Suggested change is to use SCRIPT_URI + QUERY_STRING instead of 
REQUEST_URI around OAuthRequest.php line 87.

Original issue reported on code.google.com by scherpenisse on 21 Jul 2010 at 3:16

GoogleCodeExporter commented 8 years ago
Fixed. Since SCRIPT_URI may not always be present, it falls back to REQUEST_URI 
otherwise.

Original comment by brunobg%...@gtempaccount.com on 29 Jul 2010 at 3:11

GoogleCodeExporter commented 8 years ago

Original comment by brunobg%...@gtempaccount.com on 29 Jul 2010 at 3:11