mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
moar htmlentities
This commit is contained in:
parent
11ade94d62
commit
d7ad69e665
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ register_module([
|
||||||
if(!$env->is_logged_in) {
|
if(!$env->is_logged_in) {
|
||||||
http_response_code(401);
|
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>
|
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);
|
$message_length = strlen($message);
|
||||||
|
|
Loading…
Reference in a new issue