[dokuwiki] Re: Dokuwiki farm question


Take a look at the login code, also see dokuwiki xref pages, http://dev.splitbrain.org/reference/dokuwiki/

Just this once, iirc, auth_login() -> act_redirect() -> act_redirect_execute() -> send_redirect() are called to forward the user to the wiki home page.

If you do find a bug, please visit http://bugs.splitbrain.org and file a bug report, include your proposed solution if you have one.

- Chris
Ok found the problematic point so far: In common.php ther is a function send_redirect() which uses
 header('Location: '.$url);
for redirecting. It seems that this sort of redirection interferes with the internal server redirection.

One moment. Am I wrong when I say that: internal redirection works on the web servers side and Header-redirection works in the browser? This would explain the behaviour. I assume that the browser takes the actual path of the website and simply tries to add (in my case: "../doku1/doku.php"). Seems like "../" does not work here and is ignored.

Do you think I'm correct here?

As I looked at the string $url in the send_redirect function I saw it's a filename with an absolute path. In order to work also in farms it should look like e.g. "http://127.0.0.1/dokuwiki/doku.php";, right?

Just for fun I hardcoded the above sampel URL and then it worked without flawlessly.

Is this a bug? What do you think?

Tomorrow I'll search whether I can found out where this absolute path comes from.

- Karl
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: