Allow '0' to appear as a path fragment

This commit is contained in:
Chris 2017-01-06 11:23:35 +00:00
parent 1263fa2f1f
commit b2d16ed738

View File

@ -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);