Description
Creating this issue to make this #149 mergeable.
path and branch are extracted from the matched URL by removing the leading
/blob/, /tree/, /-/blob/ or /-/tree/ marker. The code did this with
str.replace(marker, ""), which removes every occurrence of the marker, not
just the leading one. When the file path or branch name legitimately contains the
same segment again, the result is silently corrupted.
Description
Creating this issue to make this #149 mergeable.
path and branch are extracted from the matched URL by removing the leading
/blob/, /tree/, /-/blob/ or /-/tree/ marker. The code did this with
str.replace(marker, ""), which removes every occurrence of the marker, not
just the leading one. When the file path or branch name legitimately contains the
same segment again, the result is silently corrupted.