On 04.03.2010, at 11:20, Tom Anheyer wrote:
Hello,we use the routing to simulate a filesystem. Here is part of our routing:<routes> <!-- simulate filesystem directory tree --> <route name=".rubric" pattern="^({rubricPath:[\w/-]*/})" cut="true"> ... <!-- Specials: feeds --> <route name=".misc" pattern="^.x-" module="Misc"><route name=".feed" pattern="^feed/({cms_module:\w+})$" action="Feed">... <route name=".kml" pattern="^.kml$" output_type="kml" /> </route> </route> </route> </routes>The rubricPath parameter contains '/'. AgaviRouting::gen() generates for route '.rubric.misc.feed.kml' the URL:http://bo.tay.dev.bo.intern%2Fthemen%2Freise%2Fostsee%2F.x-feed/ category.kml?id=1103850&language=61435The Query-String is quoted as expected. But the rubricPath is also quoted and the URL doesn't work. Is there a chance to disable the quoting for parameters used in the path part of an URL?
I presume you're running Apache. In that case, you need to enable the AllowEncodedSlashes directive, otherwise Apache will reject the URL. Agavi can handle these URLs fine.
Alternatively (if you don't want the encoding at all), use$ro->gen('.rubric.misc.feed.kml', array('rubricPath' => $ro- >createValue($path, false)));
- David
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
