[Jifty-commit] r3253 - in jifty/trunk: share/web/templates/__jifty/webservices

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri May 18 18:17:10 EDT 2007


Author: alexmv
Date: Fri May 18 18:17:09 2007
New Revision: 3253

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/share/web/templates/__jifty/webservices/xml

Log:
 r19194 at zoq-fot-pik:  chmrr | 2007-05-18 18:16:57 -0400
  * Cope better with malformed fragment requests


Modified: jifty/trunk/share/web/templates/__jifty/webservices/xml
==============================================================================
--- jifty/trunk/share/web/templates/__jifty/webservices/xml	(original)
+++ jifty/trunk/share/web/templates/__jifty/webservices/xml	Fri May 18 18:17:09 2007
@@ -3,6 +3,8 @@
 my $writer = XML::Writer->new( OUTPUT => \$output, UNSAFE => 1 );
 $writer->xmlDecl( "UTF-8", "yes" );
 $writer->startTag("response");
+
+FRAGMENT:
 for my $f ( Jifty->web->request->fragments ) {
     # Set up the region stack
     local Jifty->web->{'region_stack'} = [];
@@ -30,6 +32,11 @@
             parent         => Jifty->web->current_region,
             defaults       => \%defaults,
         );
+
+        # It's possible that the pageregion creation could fail -- no
+        # name, for instance.  In that case, bail on this fragment.
+        next FRAGMENT unless $new;
+
         $new->enter;
     }
 


More information about the Jifty-commit mailing list