ChatMessages: Better validation.
This commit is contained in:
parent
3d4eca5dd4
commit
e2ced04917
8 changed files with 128 additions and 6 deletions
2
test/fixtures/create-chat-message.json
vendored
2
test/fixtures/create-chat-message.json
vendored
|
|
@ -3,7 +3,7 @@
|
|||
"id": "http://2hu.gensokyo/objects/1",
|
||||
"object": {
|
||||
"attributedTo": "http://2hu.gensokyo/users/raymoo",
|
||||
"content": "You expected a cute girl? Too bad.",
|
||||
"content": "You expected a cute girl? Too bad. <script>alert('XSS')</script>",
|
||||
"id": "http://2hu.gensokyo/objects/2",
|
||||
"published": "2020-02-12T14:08:20Z",
|
||||
"to": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue