Summary: | [Chameleon] gszAppWebPath code remove second from the end slash when no filename in URL | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Julien-Samuel Lacroix <jlacroix@mapgears.com> |
Component: | Core | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
I fix the problem. The path was truncated with the pathinfo() php function. This
function remove last slash in all values returned. I made this patch to fix.
159c159,162
< $szPath = $aszPath['dirname'].$aszPath['basename'].'/';
---
> if(substr($aszPath['dirname'], -1) != '/')
> $szPath = $aszPath['dirname']."/".$aszPath['basename'].'/';
> else
> $szPath = $aszPath['dirname'].$aszPath['basename'].'/';
Marking as FIXED
Changing Version to 1.99 (2.0 not being worked on yet).