[dokuwiki] Re: Duplicate slash patch

On Tue, 15 Apr 2008 00:56:38 +0400
"Ilya S. Lebedev" <ilya@xxxxxxxxxxx> wrote:

> Hello,
> 
> This patch fixes getBaseURL function, producing 2 consecutive slashes
> in the URL. Patch contains fix and test for it.

Hmm your test uses 'http:/example.com/' as baseurl!? There's a missing
second slash?

Your preg_replace('!^/+!','',$dir); will remove every slash from $dir!?

Can you explain what the exact problem was?

Andi

-- 
http://www.splitbrain.org

Other related posts: