• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision10672a25e9f37f7aace726a3d5cc9d4686e24409 (tree)
Zeit2020-02-13 04:53:15
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2500 comment, pcomment plugin: Require msg on submit

Ändern Zusammenfassung

Diff

--- a/plugin/comment.inc.php
+++ b/plugin/comment.inc.php
@@ -128,7 +128,8 @@ function plugin_comment_convert()
128128 <input type="hidden" name="above" value="$above" />
129129 <input type="hidden" name="digest" value="$digest" />
130130 $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 />
132133 <input type="submit" name="comment" value="$_btn_comment" />
133134 </div>
134135 </form>
--- a/plugin/pcomment.inc.php
+++ b/plugin/pcomment.inc.php
@@ -126,7 +126,8 @@ function plugin_pcomment_convert()
126126
127127 $radio = $params['reply'] ?
128128 '<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 />';
130131
131132 $s_page = htmlsc($page);
132133 $s_refer = htmlsc($vars_page);