From: Justin Lebar Date: Mon, 31 Mar 2014 22:11:46 +0000 (-0700) Subject: comments: fix misuses of "nor" X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/c97bf86085e0f7590fb94725c71c56254a7d09dd98f8a891c99365cbfa1cb3bb comments: fix misuses of "nor" Signed-off-by: Justin Lebar Signed-off-by: Junio C Hamano --- 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!(^|/)(|\.|\.\.)(/|$)!) {