Skip to content

Commit

Permalink
fix escaping in regexp
Browse files Browse the repository at this point in the history
This broke installations of repositories named with two chars
  • Loading branch information
adrianschroeter committed Jun 28, 2018
1 parent 38c082c commit 57bf91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dummyhttpserver
Expand Up @@ -108,8 +108,8 @@ sub readrequest {
while (1) {
next if $path =~ s!//!/!;
next if $path =~ s!/\.(?:/|$)!/!;
next if $path =~ s!/[^/]+/..(?:/|$)!/!;
next if $path =~ s!/..(?:/|$)!/!;
next if $path =~ s!/[^/]+/\.\.(?:/|$)!/!;
next if $path =~ s!/\.\.(?:/|$)!/!;
last;
}
return ($path, $query_string, $qu);
Expand Down

0 comments on commit 57bf91d

Please sign in to comment.