[Jifty-commit] r1370 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Jun 26 18:07:58 EDT 2006


Author: alexmv
Date: Mon Jun 26 18:07:56 2006
New Revision: 1370

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Web.pm

Log:
 r14413 at zoq-fot-pik:  chmrr | 2006-06-26 18:07:45 -0400
  * Warn on URLs which look like they have GET parameters


Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Web.pm	Mon Jun 26 18:07:56 2006
@@ -557,6 +557,9 @@
     my $page = shift || $self->next_page;
     $page = Jifty::Web::Form::Clickable->new( url => $page )
       unless ref $page and $page->isa("Jifty::Web::Form::Clickable");
+
+    warn "Don't include GET paramters in the redirect URL -- use a Jifty::Web::Form::Clickable instead.  See L<Jifty::Web/redirect>" if $page->url =~ /\?/;
+
     my %overrides = ( @_ );
     $page->parameter($_ => $overrides{$_}) for keys %overrides;
 


More information about the Jifty-commit mailing list