add maxlength=50 to ikiwiki template used for page title entry
authorJoey Hess <joeyh@joeyh.name>
Mon, 2 Nov 2020 19:21:24 +0000 (15:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 2 Nov 2020 19:21:24 +0000 (15:21 -0400)
doc/bugs/Error_cloning_repository_on_Windows/comment_6_2474b1cc6256afefb3d0530c3a0a24e8._comment [new file with mode: 0644]
doc/templates/blogpost.tmpl [new file with mode: 0644]

diff --git a/doc/bugs/Error_cloning_repository_on_Windows/comment_6_2474b1cc6256afefb3d0530c3a0a24e8._comment b/doc/bugs/Error_cloning_repository_on_Windows/comment_6_2474b1cc6256afefb3d0530c3a0a24e8._comment
new file mode 100644 (file)
index 0000000..0ef6e77
--- /dev/null
@@ -0,0 +1,12 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 6"""
+ date="2020-11-02T19:17:01Z"
+ content="""
+Hmm, the form has size=40, but people are pasting entire long error
+messages into it. Although special characters also being escaped increases
+the length, if it were really limited to around that length, it would still
+be short enough.
+
+Ok, added maxlength=50 to it.
+"""]]
diff --git a/doc/templates/blogpost.tmpl b/doc/templates/blogpost.tmpl
new file mode 100644 (file)
index 0000000..e9722ea
--- /dev/null
@@ -0,0 +1,16 @@
+<form <TMPL_IF POSTFORMID>id="<TMPL_VAR POSTFORMID ESCAPE=HTML>"</TMPL_IF> action="<TMPL_VAR CGIURL>" method="get">
+<div class="blogform">
+<TMPL_IF RSSURL>
+<a class="feedbutton" type="application/rss+xml" rel="alternate" title="<TMPL_VAR RSSDESC>" href="<TMPL_VAR RSSURL>">RSS</a>
+</TMPL_IF>
+<TMPL_IF ATOMURL>
+<a class="feedbutton" type="application/atom+xml" rel="alternate" title="<TMPL_VAR ATOMDESC>" href="<TMPL_VAR ATOMURL>">Atom</a>
+</TMPL_IF>
+<input type="hidden" name="do" value="blog" />
+<input type="hidden" name="from" value="<TMPL_VAR ROOTPAGE>" />
+<input type="hidden" name="subpage" value="1" />
+<TMPL_VAR POSTFORMTEXT>
+<input name="title" size="40" maxlength="50" />
+<input type="submit" value="Edit" />
+</div>
+</form>