fixed typo in recent checkin
John Napiorkowski [Fri, 29 Mar 2013 17:21:54 +0000 (13:21 -0400)]
Changes
lib/Catalyst.pm

diff --git a/Changes b/Changes
index 9c184f3..084bfd5 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,10 @@
 # This file documents the revision history for Perl extension Catalyst.
 
 5.90021 - TBA
+  - make $app->uri_for and related methods return something sane, when called
+    as an application method, instead of a context method.  Now if you call
+    MyApp::Web->uri_for(...) you will get a generic URI object that you need to
+    resolve manually.
   - documentation updates around forwarding to chained actions
   - Fixed bug when a PSGI engine need to use psgix logger
   - Added cpanfile as a way to notice we are a dev checkout
index b008e3a..2159d79 100644 (file)
@@ -1341,7 +1341,7 @@ sub uri_for {
     # join args with '/', or a blank string
     my $args = join('/', grep { defined($_) } @args);
     $args =~ s/\?/%3F/g; # STUPID STUPID SPECIAL CASE
-    $args =~ s!^/+!!i;
+    $args =~ s!^/+!!;
 
     my ($base, $class) = ('/', 'URI::_generic');
     if(blessed($c)) {