[Templates-cvs] cvs commit: Template2/lib/Template/Plugin URL.pm

cvs@template-toolkit.org cvs@template-toolkit.org


cvs         05/12/23 13:22:25

  Modified:    lib/Template/Plugin URL.pm
  Log:
  The URL plugin shouldn't HTML encode items by default.  Bug report from Randal Schwartz (http://lists.template-toolkit.org/pipermail/templates/2005-December/008158.html)
  
  Revision  Changes    Path
  2.67      +3 -3      Template2/lib/Template/Plugin/URL.pm
  
  Index: URL.pm
  ===================================================================
  RCS file: /template-toolkit/Template2/lib/Template/Plugin/URL.pm,v
  retrieving revision 2.66
  retrieving revision 2.67
  diff -u -r2.66 -r2.67
  --- URL.pm	2005/08/10 08:35:08	2.66
  +++ URL.pm	2005/12/23 13:22:25	2.67
  @@ -18,7 +18,7 @@
   #
   #----------------------------------------------------------------------------
   #
  -# $Id: URL.pm,v 2.66 2005/08/10 08:35:08 abw Exp $
  +# $Id: URL.pm,v 2.67 2005/12/23 13:22:25 darren Exp $
   #
   #============================================================================
   
  @@ -31,7 +31,7 @@
   use Template::Plugin;
   
   @ISA     = qw( Template::Plugin );
  -$VERSION = sprintf("%d.%02d", q$Revision: 2.66 $ =~ /(\d+)\.(\d+)/);
  +$VERSION = sprintf("%d.%02d", q$Revision: 2.67 $ =~ /(\d+)\.(\d+)/);
   
   
   #------------------------------------------------------------------------
  @@ -49,7 +49,7 @@
           my $newbase = shift unless ref $_[0] eq 'HASH';
           my $newargs = shift || { };
           my $combo   = { %$args, %$newargs };
  -        my $urlargs = join('&', 
  +        my $urlargs = join('&',
   #			   map  { "$_=" . escape($combo->{ $_ }) }
   			   map  { args($_, $combo->{ $_ }) }
   			   grep { defined $combo->{ $_ } && length $combo->{ $_ } }