Allow '0' to appear as a path fragment
This commit is contained in:
parent
1263fa2f1f
commit
b2d16ed738
@ -67,7 +67,7 @@ sub path_join {
|
|||||||
$bit =~ s|^/*||; $bit =~ s|/*$||;
|
$bit =~ s|^/*||; $bit =~ s|/*$||;
|
||||||
|
|
||||||
# If the fragment was nothing more than slashes, ignore it
|
# If the fragment was nothing more than slashes, ignore it
|
||||||
next unless($bit);
|
next unless($bit =~ /\S/);
|
||||||
|
|
||||||
# Store for joining
|
# Store for joining
|
||||||
push(@parts, $bit);
|
push(@parts, $bit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user