[Chameleon-dev] [Bug 517] [Chameleon] gszAppWebPath code remove
second from the end slash when no filename in URL
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Tue Jul 13 14:43:49 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=517
jlacroix at dmsolutions.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jlacroix at dmsolutions.ca 2004-07-13 14:43 -------
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
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list