Slight bulletproofing to IFTTT regex handling (#436)

This commit is contained in:
Chris Caron 2021-09-06 13:51:32 -04:00 committed by GitHub
parent 81d1ea72bc
commit e20fce630d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,7 +355,7 @@ class NotifyIFTTT(NotifyBase):
result = re.match(
r'^https?://maker\.ifttt\.com/use/'
r'(?P<webhook_id>[A-Z0-9_-]+)'
r'/?(?P<events>([A-Z0-9_-]+/?)+)?'
r'((?P<events>(/[A-Z0-9_-]+)+))?'
r'/?(?P<params>\?.+)?$', url, re.I)
if result: