Page MenuHomePhabricator

URL prefix used twice if $wgScriptPath = "$wgServer/w"
Closed, InvalidPublic

Description

Author: elifarley

Description:
When I try to log in using my OpenID, my OpenID provider shows me this error:

return_to u'http://openfarmtech.orghttp://openfarmtech.org/w/index.php?title=Special:OpenIDLogin/Finish&janrain_nonce=2011-02-09T12%3A00%3A00cSPXXW9' not under trust_root u'http://openfarmtech.org/'

Variables:

$wgServer = "http://openfarmtech.org";
$wgArticlePath = "/wiki/$1";
$wgScriptPath = "$wgServer/w";

Everything else on the wiki seems to be working fine.

If I change $wgScriptPath to "/w", I can log in, but then all my links will be relative, which makes it troublesome to browse the wiki via CoralDCN, so I really need to have $wgScriptPath = "$wgServer/w".


Version: unspecified
Severity: major
URL: http://openfarmtech.org/w/index.php?title=Special:OpenIDLogin&returnto=Main_Page

Details

Reference
bz27279

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:21 PM
bzimport set Reference to bz27279.

$wgScriptPath, $wgArticlePath, etc must be local paths by definition; setting them to full paths will break a huge amount of stuff that assumes them to be local.