Skip to content

Commit

Permalink
Don't allow slashes in URL suffix
Browse files Browse the repository at this point in the history
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
  • Loading branch information
dra27 committed Mar 17, 2018
1 parent d19f11a commit dcdb6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/opamUrl.ml
Expand Up @@ -47,7 +47,7 @@ let split_url =
group @@ seq [
non_greedy @@ rep @@ diff any (char '#');
(* If there's a .suffix, group it separately (used for backend guessing) *)
opt @@ seq [ char '.'; group @@ rep1 @@ diff any (set ".#")]
opt @@ seq [ char '.'; group @@ rep1 @@ diff any (set "\\/.#")]
];
(* Parse the fragment (git branch, etc.) *)
opt @@ seq [ char '#'; group @@ rep any ];
Expand Down

0 comments on commit dcdb6b3

Please sign in to comment.