[Jifty-commit] r4285 - jifty/trunk/lib/Jifty/Request

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 21 16:08:37 EDT 2007


Author: audreyt
Date: Sun Oct 21 16:08:25 2007
New Revision: 4285

Modified:
   jifty/trunk/lib/Jifty/Request/Mapper.pm

Log:
* Jifty::Request::Mapper - Avoid uninitialized warnings when
  $args{destination} ends up undefined.

Modified: jifty/trunk/lib/Jifty/Request/Mapper.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Request/Mapper.pm	(original)
+++ jifty/trunk/lib/Jifty/Request/Mapper.pm	Sun Oct 21 16:08:25 2007
@@ -157,7 +157,7 @@
 
     # Bail unless it's a mapping
     return ( @original )
-        unless $args{destination} =~ /^J:M-(.*)/;
+        unless defined $args{destination} and $args{destination} =~ /^J:M-(.*)/;
 
     my $destination = $1;
 


More information about the Jifty-commit mailing list