Fossil SCM

Limit the max length of new forum thread's title.

ashepilko 2020-03-06 17:27 trunk
Commit 81fb5e760078068faf5faf7e3752d6d3452a65cfb6491b5870cc41ce0cdb8ca5
1 file changed +2 -1
+2 -1
--- src/forum.c
+++ src/forum.c
@@ -735,11 +735,12 @@
735735
const char *zTitle,
736736
const char *zMimetype,
737737
const char *zContent
738738
){
739739
if( zTitle ){
740
- @ Title: <input type="input" name="title" value="%h(zTitle)" size="50"><br>
740
+ @ Title: <input type="input" name="title" value="%h(zTitle)" size="50"
741
+ @ maxlength="125"><br>
741742
}
742743
@ %z(href("%R/markup_help"))Markup style</a>:
743744
mimetype_option_menu(zMimetype);
744745
@ <br><textarea name="content" class="wikiedit" cols="80" \
745746
@ rows="25" wrap="virtual">%h(zContent)</textarea><br>
746747
--- src/forum.c
+++ src/forum.c
@@ -735,11 +735,12 @@
735 const char *zTitle,
736 const char *zMimetype,
737 const char *zContent
738 ){
739 if( zTitle ){
740 @ Title: <input type="input" name="title" value="%h(zTitle)" size="50"><br>
 
741 }
742 @ %z(href("%R/markup_help"))Markup style</a>:
743 mimetype_option_menu(zMimetype);
744 @ <br><textarea name="content" class="wikiedit" cols="80" \
745 @ rows="25" wrap="virtual">%h(zContent)</textarea><br>
746
--- src/forum.c
+++ src/forum.c
@@ -735,11 +735,12 @@
735 const char *zTitle,
736 const char *zMimetype,
737 const char *zContent
738 ){
739 if( zTitle ){
740 @ Title: <input type="input" name="title" value="%h(zTitle)" size="50"
741 @ maxlength="125"><br>
742 }
743 @ %z(href("%R/markup_help"))Markup style</a>:
744 mimetype_option_menu(zMimetype);
745 @ <br><textarea name="content" class="wikiedit" cols="80" \
746 @ rows="25" wrap="virtual">%h(zContent)</textarea><br>
747

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button