Merge pull request #9133 from f-froehlich/master

Bugfix: local path regex should not match s3 and b2 urls
This commit is contained in:
TW 2025-11-02 15:52:43 +01:00 committed by GitHub
commit b9508a8f55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -451,7 +451,7 @@ class Location:
# path may contain any chars. to avoid ambiguities with other regexes,
# it must not start with "//" nor with "scheme://" nor with "rclone:".
local_path_re = r"""
(?!(//|(ssh|socket|sftp|file)://|rclone:))
(?!(//|(ssh|socket|sftp|file)://|(rclone|s3|b2):))
(?P<path>.+)
"""