Skip to content

Commit

Permalink
fix sanitization part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 23, 2024
1 parent 1500d77 commit cba93d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/controller/post.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class PostController extends Controller {
@Path() id: number,
@Body() postToUpdate: CreateWebsitePost,
): Promise<WebsitePost> {
postToUpdate.description = this.sanitizeDescription(postToUpdate.description);
postToUpdate.description = DOMPurify.sanitize(postToUpdate.description);
return this.service.update(id, postToUpdate);
}

Expand Down

0 comments on commit cba93d7

Please sign in to comment.