mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 22:34:58 -04:00
Add additional validation to pusher URLs. (#8865)
Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification.
This commit is contained in:
parent
df3e6a23a7
commit
b774c555d8
6 changed files with 107 additions and 31 deletions
|
@ -1256,7 +1256,7 @@ class PushersRestTestCase(unittest.HomeserverTestCase):
|
|||
device_display_name="pushy push",
|
||||
pushkey="a@example.com",
|
||||
lang=None,
|
||||
data={"url": "example.com"},
|
||||
data={"url": "https://example.com/_matrix/push/v1/notify"},
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue