mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
SECURITY: Cross-Site Scripting in Category and Group Settings
This commit is contained in:
parent
77847f0d46
commit
cf5b756b1a
6 changed files with 69 additions and 9 deletions
|
@ -109,7 +109,13 @@ export default function() {
|
|||
});
|
||||
|
||||
this.put('/categories/:category_id', request => {
|
||||
|
||||
const category = parsePostData(request.requestBody);
|
||||
|
||||
if (category.email_in === "duplicate@example.com") {
|
||||
return response(422, {"errors": ['duplicate email']});
|
||||
}
|
||||
|
||||
return response({category});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue