소스 검색

Fix adjustment of mailto: URLs

RichardG867 2 년 전
부모
커밋
8a79841fd0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      waybackproxy.py

+ 1 - 1
waybackproxy.py

@@ -379,7 +379,7 @@ class Handler(socketserver.BaseRequestHandler):
 							return b'http://' + match.group(1) + b':' + match.group(2) + b'@'
 						else:
 							return b'http://web.archive.org/web/' + match.group(1) + match.group(2) + b'/' + match.group(3)
-					data = re.sub(b'(?:(?:https?:)?//web.archive.org)?/web/([0-9]+)([a-z]+_)?/([^:/]+://)', filter_asset, data)
+					data = re.sub(b'(?:(?:https?:)?//web.archive.org)?/web/([0-9]+)([a-z]+_)?/([^:/]+:(?://)?)', filter_asset, data)
 				else:
 					# Remove asset URLs while simultaneously adding them to the date LRU cache
 					# with their respective date and converting secure URLs to regular HTTP.