[Rt-commit] rt branch, 4.2/static-handler, updated. rt-4.0.0rc7-252-gff4ffb6

? sunnavy sunnavy at bestpractical.com
Fri May 13 03:53:22 EDT 2011


The branch, 4.2/static-handler has been updated
       via  ff4ffb6b33b5b7c085cd07b646f511b7399ebee0 (commit)
      from  03769287cf991b23ad86b127b1aa51355fde304b (commit)

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

- Log -----------------------------------------------------------------
commit ff4ffb6b33b5b7c085cd07b646f511b7399ebee0
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri May 13 15:46:55 2011 +0800

    in case the root is empty

diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index 27d6ae5..9ae36bf 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -262,6 +262,7 @@ sub PSGIApp {
     my $builder = Plack::Builder->new();
 
     for my $static ( RT->Config->Get('StaticRoots') ) {
+        next unless $static;
         if ( ref $static ) {
             if ( ref $static eq 'HASH' ) {
                 $builder->add_middleware( 'Plack::Middleware::Static',

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


More information about the Rt-commit mailing list