aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 15:17:22 -0800
committerFChannel <=>2021-01-28 15:17:22 -0800
commit7985199b37c4e497bb9b245613d3eeb09c98cadb (patch)
tree5ddf70177dcb5c56fa34409cf3806eaa699ef5a9 /static
parent6dc1c48518a4f458412347ca5c73eb7846229a0d (diff)
max length for input fields
Diffstat (limited to 'static')
-rw-r--r--static/bottom.html4
-rw-r--r--static/top.html8
2 files changed, 6 insertions, 6 deletions
diff --git a/static/bottom.html b/static/bottom.html
index 25339b5..c058b14 100644
--- a/static/bottom.html
+++ b/static/bottom.html
@@ -2,8 +2,8 @@
<div id="reply-box" class="popup-box" style="display: none; ">
<div id="reply-header" style="display: inline-block; width: 370px; z-index: 0; cursor: move;"></div><div id="reply-close" style="display: inline-block; float: right;"><a href="javascript:closeReply()">[X]</a></div>
<form id="reply-post" action="/post" method="post" enctype="multipart/form-data">
- <input id="reply-name" name="name" size="43" type="text" placeholder="Name">
- <input id="reply-options" name="options" size="43" type="text" placeholder="Options">
+ <input id="reply-name" name="name" size="43" type="text" placeholder="Name" maxlength="100">
+ <input id="reply-options" name="options" size="43" type="text" placeholder="Options" maxlength="100">
<textarea id="reply-comment" name="comment" rows="12" cols="54" style="width: 396px;" maxlength="2000"></textarea>
<input id="reply-file" name="file" type="file">
<input id="reply-submit" type="submit" value="Reply" style="float: right;">
diff --git a/static/top.html b/static/top.html
index d28043f..b891e14 100644
--- a/static/top.html
+++ b/static/top.html
@@ -11,15 +11,15 @@
<div id="newpost" style="display: none;">
<form id="new-post" action="/post" method="post" enctype="multipart/form-data">
<label for="name">Name:</label><br>
- <input type="text" id="name" name="name" placeholder="Anonymous"><br>
+ <input type="text" id="name" name="name" placeholder="Anonymous" maxlength="100"><br>
<label for="options">Options:</label><br>
- <input type="text" id="options" name="options">{{ if .Board.InReplyTo }}<input type="submit" value="Post">{{ end }}<br>
+ <input type="text" id="options" name="options" maxlength="100">{{ if .Board.InReplyTo }}<input type="submit" value="Post">{{ end }}<br>
{{ if eq .Board.InReplyTo "" }}
<label for="subject">Subject:</label><br>
- <input type="text" id="subject" name="subject"><input type="submit" value="Post"><br>
+ <input type="text" id="subject" name="subject" maxlength="100"><input type="submit" value="Post"><br>
{{ end }}
<label for="comment">Comment:</label><br>
- <textarea rows="10" cols="50" id="comment" name="comment"></textarea><br>
+ <textarea rows="10" cols="50" id="comment" name="comment" maxlength="2000"></textarea><br>
<input type="hidden" id="inReplyTo" name="inReplyTo" value="{{ .Board.InReplyTo }}">
<input type="hidden" id="sendTo" name="sendTo" value="{{ .Board.To }}">
<input type="hidden" id="boardName" name="boardName" value="{{ .Board.Name }}">