1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

moar htmlentities

This commit is contained in:
Starbeamrainbowlabs 2020-04-18 12:41:24 +01:00
parent 11ade94d62
commit d7ad69e665
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -38,7 +38,7 @@ register_module([
if(!$env->is_logged_in) {
http_response_code(401);
exit(page_renderer::render_main("Error posting comment - $settings->sitename", "<p>Your comment couldn't be posted because you're not logged in. You can login <a href='?action=index'>here</a>. Here's the comment you tried to post:</p>
<textarea readonly>$message</textarea>"));
<textarea readonly>".htmlentities($message)."</textarea>"));
}
$message_length = strlen($message);