Fixed some warnings
Sebastian Riedel [Tue, 1 Nov 2005 23:48:37 +0000 (23:48 +0000)]
lib/Catalyst.pm

index 05824a6..64318c9 100644 (file)
@@ -426,6 +426,7 @@ sub uri_for {
     # massage match, empty if absolute path
     $match =~ s/^\///;
     $match .= '/' if $match;
+    $path ||= '';
     $match = '' if $path =~ /^\//;
     $path =~ s/^\///;