Browse files

Remove noise from COK Veg* redirects

  • Loading branch information...
1 parent 12929b3 commit bcc7928b10d3ab627611043e81adfa38e0798897 @autarch autarch committed Nov 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/VegGuide/Role/Controller/Search.pm
View
3 lib/VegGuide/Role/Controller/Search.pm
@@ -124,6 +124,9 @@ sub _search_from_request {
$self->_redirect_on_bad_request( $c, $class, %p );
+ # Noise from COK Veg* redirects
+ delete @p{qw( sort q )};
+
delete $p{$_} for grep {/^possible/} keys %p;
delete @p{qw( order_by sort_order page limit )};
delete $p{'ie-hack'};

0 comments on commit bcc7928

Please sign in to comment.