Simon McVittie [Tue, 26 Feb 2019 21:06:45 +0000 (21:06 +0000)]
Prepare 3.
20190228 for future release
Simon McVittie [Sun, 10 Feb 2019 16:56:41 +0000 (16:56 +0000)]
doc: Document security issues involving LWP::UserAgent
Recommend the LWPx::ParanoidAgent module where appropriate.
It is particularly important for openid, since unauthenticated users
can control which URLs that plugin will contact. Conversely, it is
non-critical for blogspam, since the URL to be contacted is under
the wiki administrator's control.
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 10 Feb 2019 17:22:06 +0000 (17:22 +0000)]
useragent: Automatically choose whether to use LWPx::ParanoidAgent
The simple implementation of this, which I'd prefer to use, would be:
if we can import LWPx::ParanoidAgent, use it; otherwise, use
LWP::UserAgent.
However, aggregate has historically worked with proxies, and
LWPx::ParanoidAgent quite reasonably refuses to work with proxies
(because it can't know whether those proxies are going to do the same
filtering that LWPx::ParanoidAgent would).
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 10 Feb 2019 16:30:07 +0000 (16:30 +0000)]
useragent: Don't allow non-HTTP protocols to be used
This prevents the aggregate plugin from being used to read the contents
of local files via file:/// URLs.
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 10 Feb 2019 16:29:19 +0000 (16:29 +0000)]
useragent: Raise an exception if the LWP module can't be loaded
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sat, 1 Dec 2018 21:18:23 +0000 (21:18 +0000)]
po: Always filter .po files
The input to filter hooks is meant to be the content of a source file
on disk. If we only filter once per (page, destpage) pair, and a page
is inlined into the same destpage more than once, then the second
occurrence will render as the result of htmlizing .po source as if
it was Markdown (or whatever the type of the corresponding master page
is), which is never going to end well.
The alreadyfiltered mechanism was added in commit
1e874b3f to avoid
preprocessing loops, but I'm not sure where it could lead to a loop:
filter hooks are only called from IkiWiki::filter, which is only called
on page content from disk or on proposed content being previewed.
According to <https://bugs.debian.org/911356#41>, deleting the
alreadyfiltered mechanism resolves the problem, as well as simplifying
the code.
Closes: #911356
Tested-by: intrigeri
Amitai Schleier [Thu, 14 Feb 2019 04:59:32 +0000 (23:59 -0500)]
Recommend against cvsps3 (haven't tried it).
Simon McVittie [Thu, 7 Feb 2019 11:32:21 +0000 (11:32 +0000)]
Announce v3.
20190207
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Thu, 7 Feb 2019 11:08:02 +0000 (11:08 +0000)]
Prepare new release
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 19:22:07 +0000 (19:22 +0000)]
review
Simon McVittie [Sun, 3 Feb 2019 18:53:23 +0000 (18:53 +0000)]
comment
smcv [Sun, 3 Feb 2019 18:40:29 +0000 (14:40 -0400)]
tag as reviewed
smcv [Sun, 3 Feb 2019 18:39:51 +0000 (14:39 -0400)]
respond
smcv [Sun, 3 Feb 2019 18:28:21 +0000 (14:28 -0400)]
Exclude reviewed patches from this list
Simon McVittie [Sun, 3 Feb 2019 17:10:45 +0000 (17:10 +0000)]
close
Antoine Beaupré [Mon, 6 Nov 2017 19:15:22 +0000 (14:15 -0500)]
append javascript after CSS
Javascript resources should be presented to browsers after CSS, and
"after the fold" (ATF) according to the best practices:
https://developers.google.com/speed/docs/insights/mobile#PutStylesBeforeScripts
This change allows the browser to download Javascript files in
parallel, by including Javascript on the *closing* </body> tag instead
of the opening tag.
We also improve the regex to tolerate spaces before the body tag, as
some templates have (proper) indentation for the tag.
Simon McVittie [Sun, 2 Sep 2018 11:49:16 +0000 (12:49 +0100)]
Remove unreachable git repositories
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 16:54:20 +0000 (16:54 +0000)]
Mark as applied
Signed-off-by: Simon McVittie <smcv@debian.org>
Antoine Beaupré [Thu, 11 Oct 2018 18:32:41 +0000 (14:32 -0400)]
remove the "add comment" button from printed media
Amitai Schleier [Sun, 3 Feb 2019 16:34:43 +0000 (10:34 -0600)]
Add a missing changelog entry.
Simon McVittie [Sun, 3 Feb 2019 16:27:38 +0000 (16:27 +0000)]
Update changelog
Signed-off-by: Simon McVittie <smcv@debian.org>
Jelmer Vernooij [Mon, 8 Oct 2018 06:52:28 +0000 (07:52 +0100)]
Allow Breezy as alternative to Bazaar.
(cherry picked from commit
a07f048d9fc99928ebbb74b34f5d1932ff3d7884)
Simon McVittie [Sun, 3 Feb 2019 16:06:36 +0000 (16:06 +0000)]
comments.t: Assert that comments get permalink metadata
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 16:05:13 +0000 (16:05 +0000)]
comments.t: Exercise post-2009 comment naming
Since commit
6af6c89d, comments are in files whose names contain a hash.
Signed-off-by: Simon McVittie <smcv@debian.org>
smcv [Sun, 3 Feb 2019 15:55:34 +0000 (11:55 -0400)]
old regexp would have failed for old comment page names
Simon McVittie [Sun, 3 Feb 2019 13:19:57 +0000 (13:19 +0000)]
git-cgi.t: Exercise an alphanumeric, but non-ASCII, root page
My previous attempt to reproduce this bug used a non-alphanumeric
ASCII character. This is not currently considered to be a valid
value for rootpage, although for a "do what I mean" approach, perhaps
we should accept it and pass it through titlepage() or linkpage().
Using Chinese characters (which are considered to match [[:alnum:]]
even though the Chinese script is not, strictly speaking, an alphabet),
as in the original bug report, reproduces the bug.
Signed-off-by: Simon McVittie <smcv@debian.org>
Feng Shu [Sun, 2 Dec 2018 00:38:34 +0000 (08:38 +0800)]
Fix inline plugin for non-ASCII rootpage
Simon McVittie [Sun, 3 Feb 2019 13:07:01 +0000 (13:07 +0000)]
t: Exercise Chinese and Cyrillic page titles
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 12:52:42 +0000 (12:52 +0000)]
trail: Allow unescaped punctuation in pagenames
By processing the pagenames through linkpage, we let users specify
page names that contain non-alphanumerics in a more natural way.
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 11:58:25 +0000 (11:58 +0000)]
trail.t: Exercise numeric escapes in pagenames parameter
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 12:48:40 +0000 (12:48 +0000)]
linkpage.t: Assert we can link to pages with literal underscore
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 12:25:20 +0000 (12:25 +0000)]
t: Consistently remove temp directory before testing, not after
When a test fails, it's useful to be able to inspect the output.
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 12:34:34 +0000 (12:34 +0000)]
build: Add `make reset-generated`
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sun, 3 Feb 2019 11:48:43 +0000 (11:48 +0000)]
pagetitle.t, linkpage.t, titlepage.t: Exercise Unicode more
Signed-off-by: Simon McVittie <smcv@debian.org>
smcv [Thu, 31 Jan 2019 20:41:17 +0000 (16:41 -0400)]
link to recently-added tests
smcv [Thu, 31 Jan 2019 20:38:04 +0000 (16:38 -0400)]
I'm confused about what the bug is, and what's being fixed. Can you give a complete test or example?
Simon McVittie [Thu, 31 Jan 2019 20:30:41 +0000 (20:30 +0000)]
close bug
Simon McVittie [Thu, 31 Jan 2019 20:29:48 +0000 (20:29 +0000)]
Update changelog
Simon McVittie [Thu, 31 Jan 2019 20:14:51 +0000 (20:14 +0000)]
Add a simple test for non-ASCII in tables
Signed-off-by: Simon McVittie <smcv@debian.org>
Feng Shu [Sun, 2 Dec 2018 00:41:39 +0000 (08:41 +0800)]
Fix table plugin can handle UTF-8 csv format
Simon McVittie [Thu, 31 Jan 2019 19:58:30 +0000 (19:58 +0000)]
respond
Simon McVittie [Thu, 31 Jan 2019 19:52:17 +0000 (19:52 +0000)]
Fix syntax and escaping
Simon McVittie [Thu, 31 Jan 2019 19:50:14 +0000 (19:50 +0000)]
git-cgi.t: Add a failing test for a blog with a non-ASCII rootpage
This is one of several possible bug reports on
"doc/bugs/About %2F problem" (I'm not sure what the actual bug being
reported is).
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Thu, 31 Jan 2019 19:49:10 +0000 (19:49 +0000)]
git-cgi.t: Add a simple test for blog posts from a root page
This is the working base case for "doc/bugs/About %2F problem".
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Thu, 31 Jan 2019 19:48:08 +0000 (19:48 +0000)]
git-cgi.t: Print query string as a TAP diagnostic
Signed-off-by: Simon McVittie <smcv@debian.org>
smcv [Thu, 31 Jan 2019 19:32:03 +0000 (15:32 -0400)]
anarcat [Wed, 30 Jan 2019 16:33:15 +0000 (12:33 -0400)]
inline is another option of course
anarcat [Wed, 30 Jan 2019 16:32:47 +0000 (12:32 -0400)]
show tagging example
anarcat [Wed, 30 Jan 2019 16:29:49 +0000 (12:29 -0400)]
link to the map plugin, which i find more useful to show tagged pages
dorondd@5f188d26a5727578cbe5901372cc69f1664a852b [Wed, 23 Jan 2019 04:53:59 +0000 (00:53 -0400)]
Joey Hess [Mon, 21 Jan 2019 15:59:08 +0000 (11:59 -0400)]
followup
Joey Hess [Mon, 21 Jan 2019 15:57:23 +0000 (11:57 -0400)]
fix permalink to comments
This commit was sponsored by Thomas May.
Joey Hess [Mon, 21 Jan 2019 15:44:58 +0000 (11:44 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info
Joey Hess [Mon, 21 Jan 2019 15:44:29 +0000 (11:44 -0400)]
bug report
ntntnt [Mon, 21 Jan 2019 04:34:51 +0000 (00:34 -0400)]
Jens [Thu, 17 Jan 2019 18:02:56 +0000 (14:02 -0400)]
User link and description changed
https://sonata-green.dreamwidth.org/ [Mon, 24 Dec 2018 16:15:32 +0000 (12:15 -0400)]
markdown backquotes
ALEXEIDZ [Sun, 16 Dec 2018 20:21:52 +0000 (16:21 -0400)]
ALEXEIDZ [Sun, 16 Dec 2018 20:20:16 +0000 (16:20 -0400)]
Joey Hess [Wed, 12 Dec 2018 14:43:52 +0000 (10:43 -0400)]
followup
xuqi [Mon, 10 Dec 2018 09:44:33 +0000 (05:44 -0400)]
xuqi [Mon, 10 Dec 2018 09:43:58 +0000 (05:43 -0400)]
xuqi [Mon, 10 Dec 2018 09:27:58 +0000 (05:27 -0400)]
de-indenting
xuqi [Mon, 10 Dec 2018 09:27:16 +0000 (05:27 -0400)]
example for inlining only one level of subpages
tumashu1 [Sat, 8 Dec 2018 08:08:38 +0000 (04:08 -0400)]
fail to inject IkiWiki::showform
jmtd [Fri, 7 Dec 2018 10:11:12 +0000 (06:11 -0400)]
patch works for me
jmtd [Fri, 7 Dec 2018 10:05:34 +0000 (06:05 -0400)]
ack
tumashu1 [Wed, 5 Dec 2018 06:47:55 +0000 (02:47 -0400)]
rename and remove plug can not work well with gettext
tumashu1 [Sun, 2 Dec 2018 01:42:06 +0000 (21:42 -0400)]
tumashu1 [Sun, 2 Dec 2018 01:41:25 +0000 (21:41 -0400)]
Suggest let table plugin support a kind of longtable
tumashu1 [Sun, 2 Dec 2018 00:56:04 +0000 (20:56 -0400)]
tumashu1 [Sun, 2 Dec 2018 00:55:16 +0000 (20:55 -0400)]
Add a patch deal with UTF-8 csv table's problem
tumashu1 [Sun, 2 Dec 2018 00:50:04 +0000 (20:50 -0400)]
Add a patch decode_utf8 inline's root page
smcv [Sat, 1 Dec 2018 21:29:56 +0000 (17:29 -0400)]
add redirection
smcv [Sat, 1 Dec 2018 21:28:11 +0000 (17:28 -0400)]
update for rename of bugs/Re-use_translated_content_instead_of_skipping_if_previously_translated/
20180628-patch.txt to bugs/po:_second_or_subsequent_inline_of_translated_page_inlines_.po_file__44___not_translated_content/
20180628-patch.txt
smcv [Sat, 1 Dec 2018 21:28:11 +0000 (17:28 -0400)]
rename bugs/Re-use_translated_content_instead_of_skipping_if_previously_translated.mdwn to bugs/po:_second_or_subsequent_inline_of_translated_page_inlines_.po_file__44___not_translated_content.mdwn
smcv [Sat, 1 Dec 2018 21:26:49 +0000 (17:26 -0400)]
update for rename of todo/Re-use_translated_content_instead_of_skipping_if_previously_translated/
20180628-patch.txt to bugs/Re-use_translated_content_instead_of_skipping_if_previously_translated/
20180628-patch.txt
smcv [Sat, 1 Dec 2018 21:26:48 +0000 (17:26 -0400)]
rename todo/Re-use_translated_content_instead_of_skipping_if_previously_translated.mdwn to bugs/Re-use_translated_content_instead_of_skipping_if_previously_translated.mdwn
smcv [Sat, 1 Dec 2018 21:25:16 +0000 (17:25 -0400)]
refer to a branch
Simon McVittie [Sat, 1 Dec 2018 21:07:38 +0000 (21:07 +0000)]
ikiwiki.info doesn't have fenced code blocks yet
Simon McVittie [Sat, 1 Dec 2018 21:06:39 +0000 (21:06 +0000)]
Escape directives in code
Simon McVittie [Sat, 1 Dec 2018 21:05:18 +0000 (21:05 +0000)]
Review
Simon McVittie [Sat, 1 Dec 2018 17:36:04 +0000 (17:36 +0000)]
po: Improve test coverage
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sat, 1 Dec 2018 13:37:38 +0000 (13:37 +0000)]
po: Add failing test for Debian bug #911356
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Sat, 1 Dec 2018 13:48:07 +0000 (13:48 +0000)]
Fix broken link in basewiki
Links from pages in the basewiki (which is also a subset of ikiwiki's
own wiki) to pages on ikiwiki's own wiki have to use [[!iki]] so that
they will not become broken links when the page in question is copied
into other installations.
Detected by ./t/basewiki_brokenlinks.t.
Signed-off-by: Simon McVittie <smcv@debian.org>
smcv [Sat, 1 Dec 2018 12:28:11 +0000 (08:28 -0400)]
I don't think the Chinese text causes this
smcv [Sat, 1 Dec 2018 12:13:39 +0000 (08:13 -0400)]
comments (no review yet)
smcv [Sat, 1 Dec 2018 11:53:47 +0000 (07:53 -0400)]
tumashu1 [Wed, 28 Nov 2018 07:55:15 +0000 (03:55 -0400)]
tumashu1 [Wed, 28 Nov 2018 07:36:09 +0000 (03:36 -0400)]
tumashu1 [Wed, 28 Nov 2018 05:16:33 +0000 (01:16 -0400)]
jmtd [Tue, 27 Nov 2018 10:06:58 +0000 (06:06 -0400)]
related issue
jmtd [Tue, 27 Nov 2018 10:05:01 +0000 (06:05 -0400)]
error output when trying
Joey Hess [Mon, 26 Nov 2018 17:23:50 +0000 (13:23 -0400)]
rename postvote to postlink
This better explains what it contains, which is a wikilink to the page
to go to after posting the vote. And postlink is more consistent a name
with posttrail.
Joey Hess [Mon, 26 Nov 2018 17:14:21 +0000 (13:14 -0400)]
poll: Added postvote and posttrail options for better multi-page polls.
Modern web users probably expect the poll to move on automatically to the
next question, and this allows for that behavior.
Note that bestlink() runs at vote time, which avoids needing to make the
page containing the poll depend on the page that sets up a trail, as the
current trail at vote time will be used.
This commit was sponsored by Eric Drechsel on Patreon.
tumashu1 [Mon, 26 Nov 2018 08:53:53 +0000 (04:53 -0400)]
tumashu1 [Mon, 26 Nov 2018 08:53:13 +0000 (04:53 -0400)]
tumashu1 [Mon, 26 Nov 2018 08:44:35 +0000 (04:44 -0400)]
anarcat [Mon, 12 Nov 2018 14:58:48 +0000 (10:58 -0400)]
avoiding ban?
hefee@4770422daf1f192bbf7aa984e90ec894f6e3b7e3 [Wed, 7 Nov 2018 08:59:14 +0000 (04:59 -0400)]
update my entry