diff --git a/rpm_s3_mirror/repository.py b/rpm_s3_mirror/repository.py index 2392df7..9ce87ca 100644 --- a/rpm_s3_mirror/repository.py +++ b/rpm_s3_mirror/repository.py @@ -144,6 +144,8 @@ def __init__(self, base_url: str): base_url += "/" self.base_url = base_url self.path = urlparse(base_url).path + if self.path.find("//") != -1: + raise ValueError("Consecutive slashes detected in URL path") self.session = get_requests_session() def has_updates(self, since: datetime) -> bool: