Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
ProxyRequest internal question (in functions.general.php)
eleith
New
i had problems setting up my single signon (ProxyConnect plugin) and i tracked it down to the ProxyRequest function which was not proxying the request to a different domain where my sign signon server was living (i have them separated on subdomains).
i tracked it down to the following line:
i tracked it down to the following line:
$HostHeader = $Host.($Post != 80) ? ":{$Port}" : '';when i change it to pass in the host (which is different from the forum host)
$HostHeader = $Host.($Post != 80) ? "$Host:{$Port}" : '';it works. any suggestions? not sure if this changes some expectations/assumptions, so i'm hesitant to do pull requests on git hub...
1
Comments
$HostHeader = $Host.($Post != 80) ? ":{$Port}" : '';
should be
$HostHeader = $Host.($Port != 80) ? ":{$Port}" : '';
Make that change and it will work as expected. Your 'fix' actually ends up messing up the Host: by double appending the hostname.
Host: hosthost:port
Vanilla Forums COO [GitHub, Twitter, About.me]
as it stands, when i use the proxy request goes out to (myforum.myhost.com/my/user/details) instead of (www.myhost.com/my/user/details) as specified in the config file for ProxyConnect.
Vanilla Forums COO [GitHub, Twitter, About.me]
i got to the bottom of the error that i am experiencing. i made the following change: to: doing an inline if/else without the parens just clobbers $Host otherwise when i run it.
Vanilla Forums COO [GitHub, Twitter, About.me]