Fixed some warnings
[catagits/Catalyst-Runtime.git] / 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/^\///;