On Aug 11, 2005, at 4:56 PM, Al Pacifico wrote:

<begin paste>
Here is the patch to that _q_traverse():

-        path = request.get_environ('PATH_INFO', '')
-        assert path[:1] == '/'
+        path = request.get_environ('PATH_INFO')
+        if not path:
+            return redirect(request.get_environ('SCRIPT_NAME', '') +
'/',
+                            permanent=True)

<end of paste>

David had suggested that this patch is needed for Apache.

Not for Apache, really, but for any context where, as Mike suggested,
you trust the SCRIPT_NAME to be right, and where you just want to treat
an empty path in what seems like the on


David, could you comment on whether it's application breaks simple_server
and other server functionality and for which versions of mod_scgi?

I'm pretty sure this has no impact on the simple_server, where
the SCRIPT_NAME is always '' and the PATH_INFO is never empty.

_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to