OSDN Git Service

BugTrack/2500 comment, pcomment plugin: Require msg on submit
authorumorigu <umorigu@gmail.com>
Wed, 12 Feb 2020 19:53:15 +0000 (04:53 +0900)
committerumorigu <umorigu@gmail.com>
Wed, 12 Feb 2020 19:53:15 +0000 (04:53 +0900)
plugin/comment.inc.php
plugin/pcomment.inc.php

index be7566f..4155d55 100644 (file)
@@ -128,7 +128,8 @@ function plugin_comment_convert()
   <input type="hidden" name="above"  value="$above" />
   <input type="hidden" name="digest" value="$digest" />
   $nametags
-  <input type="text"   name="msg" id="_p_comment_comment_{$comment_no}" size="$comment_cols" />
+  <input type="text"   name="msg" id="_p_comment_comment_{$comment_no}"
+   size="$comment_cols" required />
   <input type="submit" name="comment" value="$_btn_comment" />
  </div>
 </form>
index d465459..a427e49 100644 (file)
@@ -126,7 +126,8 @@ function plugin_pcomment_convert()
 
                $radio   = $params['reply'] ?
                        '<input type="radio" name="reply" value="0" tabindex="0" checked="checked" />' : '';
-               $comment = '<input type="text" name="msg" size="' . PLUGIN_PCOMMENT_SIZE_MSG . '" />';
+               $comment = '<input type="text" name="msg" size="' .
+                       PLUGIN_PCOMMENT_SIZE_MSG . '" required />';
 
                $s_page   = htmlsc($page);
                $s_refer  = htmlsc($vars_page);