[Jifty-commit] r517 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Jan 19 13:02:28 EST 2006
Author: alexmv
Date: Thu Jan 19 13:02:27 2006
New Revision: 517
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Dispatcher.pm
Log:
r8723 at zoq-fot-pik: chmrr | 2006-01-19 13:01:52 -0500
* Redirect to directory if we find one
Modified: jifty/trunk/lib/Jifty/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Dispatcher.pm Thu Jan 19 13:02:27 2006
@@ -617,6 +617,9 @@
$path = "$self->{cwd}/$path" unless $path =~ m{^/};
$path .= "index.html" if $path =~ m{/$};
+ $self->_do_redirect($path . "/")
+ if -d Jifty::Util->absolute_path( (Jifty->config->framework('Web')->{'TemplateRoot'} || "html") . $path );
+
$self->{cgi}->path_info($path);
eval {
$self->{handler}->handle_cgi_object($self->{cgi});
More information about the Jifty-commit
mailing list