Revision | 10672a25e9f37f7aace726a3d5cc9d4686e24409 (tree) |
---|---|
Zeit | 2020-02-13 04:53:15 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2500 comment, pcomment plugin: Require msg on submit
@@ -128,7 +128,8 @@ function plugin_comment_convert() | ||
128 | 128 | <input type="hidden" name="above" value="$above" /> |
129 | 129 | <input type="hidden" name="digest" value="$digest" /> |
130 | 130 | $nametags |
131 | - <input type="text" name="msg" id="_p_comment_comment_{$comment_no}" size="$comment_cols" /> | |
131 | + <input type="text" name="msg" id="_p_comment_comment_{$comment_no}" | |
132 | + size="$comment_cols" required /> | |
132 | 133 | <input type="submit" name="comment" value="$_btn_comment" /> |
133 | 134 | </div> |
134 | 135 | </form> |
@@ -126,7 +126,8 @@ function plugin_pcomment_convert() | ||
126 | 126 | |
127 | 127 | $radio = $params['reply'] ? |
128 | 128 | '<input type="radio" name="reply" value="0" tabindex="0" checked="checked" />' : ''; |
129 | - $comment = '<input type="text" name="msg" size="' . PLUGIN_PCOMMENT_SIZE_MSG . '" />'; | |
129 | + $comment = '<input type="text" name="msg" size="' . | |
130 | + PLUGIN_PCOMMENT_SIZE_MSG . '" required />'; | |
130 | 131 | |
131 | 132 | $s_page = htmlsc($page); |
132 | 133 | $s_refer = htmlsc($vars_page); |