maxwelldu / oauth-php

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

Undefined index 'host' in OAuthRequest on line 513 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Replace:

if (isset($_SERVER['HTTP_HOST']))
{
    $ps_pre = parse_url($_SERVER['HTTP_HOST']);
    $ps['host'] = $ps_pre['host'];
    if(isset($ps_pre['port'])) $ps['port'] = $ps_pre['port'];
}
else
{
    $ps['host'] = '';
}

With:

$ps_pre = array_merge(array('path' => '', 'query' => ''),
parse_url('OA://uth' . $_SERVER['REQUEST_URI']));
$ps['host'] = $ps_pre['host'];

Will fix this Problem. :o)

Original issue reported on code.google.com by fiedler....@gmail.com on 29 Jan 2010 at 11:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r78.

Original comment by brunobg%...@gtempaccount.com on 6 Feb 2010 at 4:37