X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/1e1514777ab915e30626229f8fd99c44fba2cb1e2a98991a51a54f63dbfa3e7a..c97bf86085e0f7590fb94725c71c56254a7d09dd98f8a891c99365cbfa1cb3bb:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 39f6641..1fe25a5 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -1491,7 +1491,7 @@ sub is_valid_pathname { my $input = shift; return undef unless defined $input; - # no '.' or '..' as elements of path, i.e. no '.' nor '..' + # no '.' or '..' as elements of path, i.e. no '.' or '..' # at the beginning, at the end, and between slashes. # also this catches doubled slashes if ($input =~ m!(^|/)(|\.|\.\.)(/|$)!) {