# This file documents the revision history for Perl extension Catalyst.
+ Bug fixes:
+ - Stop encoding plus signs in uri_for args
+
5.80005 2009-06-06 14:40:00
Behaviour changes:
( scalar @args && ref $args[$#args] eq 'HASH' ? pop @args : {} );
carp "uri_for called with undef argument" if grep { ! defined $_ } @args;
- s/([^A-Za-z0-9\-_.!~*'()])/$URI::Escape::escapes{$1}/go for @args;
+ s/([^A-Za-z0-9\-_.!~*'()+])/$URI::Escape::escapes{$1}/go for @args;
unshift(@args, $path);
use strict;
use warnings;
-use Test::More tests => 16;
+use Test::More tests => 17;
use URI;
use_ok('Catalyst');
'http://127.0.0.1/foo/yada/bar/wibble%3F/with%20space', 'Space gets encoded'
);
+is(
+ Catalyst::uri_for( $context, '/bar', 'with+plus', { 'also' => 'with+plus' })->as_string,
+ 'http://127.0.0.1/foo/bar/with+plus?also=with%2Bplus',
+ 'Plus is not encoded'
+);
# test with utf-8
is(