Closed 0xlemas closed 1 year ago
Updated to include a fix for the input rather than just the output.
Test and confirm please.
Good! Very well observed! I noticed that there was a small problem with rendering special characters in the subject field. This commit should be fixing that conversion.
This pull request fixes an XSS vulnerability in the project's code. The vulnerability was allowing malicious code to be injected into a page and executed in the user's browser, potentially stealing their cookies and accessing administrator accounts.
To fix this vulnerability, it was identified that the
addslashes()
method in PHP was not working correctly. It was changed to thehtmlentities()
method to ensure that the code is protected from XSS attacks.Changes proposed in this Pull Request:
addslashes()
tohtmlentities()