[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-242-g34a114a

? sunnavy sunnavy at bestpractical.com
Wed Dec 1 10:40:23 EST 2010


The branch, 3.9-trunk has been updated
       via  34a114ace93da91745ee715223e295113bcb4246 (commit)
      from  228b4bf794b4d6fc6684b205d2dc7c1c14c5e331 (commit)

Summary of changes:
 lib/RT/Interface/Web/Handler.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 34a114ace93da91745ee715223e295113bcb4246
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Dec 1 23:36:26 2010 +0800

    $path may end with /

diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index f3ba409..3323bbd 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -127,6 +127,7 @@ sub NewHandler {
 
 sub _mason_dir_index {
     my ($self, $interp, $path) = @_;
+    $path =~ s!/$!!;
     if (   !$interp->comp_exists( $path )
          && $interp->comp_exists( $path . "/index.html" ) )
     {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list