From: Sebastian Riedel Date: Tue, 1 Nov 2005 23:48:37 +0000 (+0000) Subject: Fixed some warnings X-Git-Tag: 5.7099_04~1058 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=6e0c45c94afaebb235b25a27f36b7c92dad45c34 Fixed some warnings --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 05824a6..64318c9 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -426,6 +426,7 @@ sub uri_for { # massage match, empty if absolute path $match =~ s/^\///; $match .= '/' if $match; + $path ||= ''; $match = '' if $path =~ /^\//; $path =~ s/^\///;