projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fixed some warnings
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst.pm
diff --git
a/lib/Catalyst.pm
b/lib/Catalyst.pm
index
05824a6
..
64318c9
100644
(file)
--- 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/^\///;