[Jifty-commit] r1496 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Jul 7 00:34:23 EDT 2006


Author: jesse
Date: Fri Jul  7 00:34:22 2006
New Revision: 1496

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Dispatcher.pm

Log:
 r13574 at pinglin:  jesse | 2006-07-06 20:05:03 -0400
 * Request URIs should start with a leading /


Modified: jifty/trunk/lib/Jifty/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Dispatcher.pm	(original)
+++ jifty/trunk/lib/Jifty/Dispatcher.pm	Fri Jul  7 00:34:22 2006
@@ -739,6 +739,7 @@
         $self->_do_show( $path . "/" );
     }
 
+
     # Set the request path
     request->path($path);
     $self->render_template(request->path);
@@ -780,7 +781,8 @@
 sub _do_dispatch {
     my $self = shift;
 
-    $self->{path} = shift;
+    # Requests should always start with a leading /
+    $self->{path} = "/".shift;
     $self->{cwd}  = '';
 
     # Normalize the path.


More information about the Jifty-commit mailing list