Simon McVittie [Tue, 3 Feb 2009 19:48:55 +0000 (19:48 +0000)]
Work around XML::Atom strangeness that results in double-encoded posts
See [[bugs/Aggregated_Atom_feeds_are_double-encoded]]. By default,
XML::Atom outputs strings of UTF-8 bytes with the Perl UTF8 flag stripped
off, which IkiWiki assumes to be Latin-1 and re-encodes as UTF-8 on
output. XML::Feed does not currently (0.41-1) set the magic variable to
change this behaviour (I've filed a bug on CPAN), but IkiWiki can
usefully set the same variable as a workaround.
http://openid.aol.com/nothatsaknife [Tue, 3 Feb 2009 19:44:22 +0000 (14:44 -0500)]
Joey Hess [Tue, 3 Feb 2009 18:51:10 +0000 (13:51 -0500)]
not so fast
http://smcv.pseudorandom.co.uk/ [Tue, 3 Feb 2009 18:33:59 +0000 (13:33 -0500)]
Update the to-do list for comments, and explain why we can't have a form for the whole comment
Joey Hess [Tue, 3 Feb 2009 15:43:27 +0000 (10:43 -0500)]
note
Joey Hess [Tue, 3 Feb 2009 15:37:24 +0000 (10:37 -0500)]
implementing pingback using checkcontent hook and the comments plugin
Joey Hess [Mon, 2 Feb 2009 20:19:56 +0000 (15:19 -0500)]
response
http://smcv.pseudorandom.co.uk/ [Mon, 2 Feb 2009 19:39:45 +0000 (14:39 -0500)]
some examples
http://smcv.pseudorandom.co.uk/ [Mon, 2 Feb 2009 19:31:27 +0000 (14:31 -0500)]
please don't make use of [[!meta title]] in parentlinks mandatory...
Joey Hess [Sun, 1 Feb 2009 00:26:36 +0000 (19:26 -0500)]
rename apache404 -> 404
This may already work with other web servers that have copied apache's
interface, and it should be easy to add support to it for web servers that
use some other interface. So, make the name more general.
Joey Hess [Sun, 1 Feb 2009 00:10:48 +0000 (19:10 -0500)]
doc updates for goto branch merge
Joey Hess [Sun, 1 Feb 2009 00:02:50 +0000 (19:02 -0500)]
factor out IE stupididy workaround
Joey Hess [Sat, 31 Jan 2009 23:52:38 +0000 (18:52 -0500)]
Merge commit 'smcv/goto'
Simon McVittie [Sat, 31 Jan 2009 23:08:48 +0000 (23:08 +0000)]
Respond with updated goto branch
Simon McVittie [Sat, 31 Jan 2009 23:01:10 +0000 (23:01 +0000)]
Split cgi_goto into a goto plugin
Simon McVittie [Sat, 31 Jan 2009 22:32:10 +0000 (22:32 +0000)]
Split apache404 into an independent plugin
Also make it ignore the 'do' parameter at Joey's suggestion, to have one
less thing to remember when configuring.
Joey Hess [Sat, 31 Jan 2009 20:05:06 +0000 (15:05 -0500)]
one other thought
Joey Hess [Sat, 31 Jan 2009 19:55:14 +0000 (14:55 -0500)]
comments
Simon McVittie [Sat, 31 Jan 2009 18:57:12 +0000 (18:57 +0000)]
Clarify behaviour of 404 handler and link an example
Simon McVittie [Sat, 31 Jan 2009 18:37:48 +0000 (18:37 +0000)]
Request review of my 'goto' branch
Simon McVittie [Sat, 31 Jan 2009 18:27:54 +0000 (18:27 +0000)]
Add tip explaining how to use ikiwiki as a 404 handler
Simon McVittie [Sat, 31 Jan 2009 18:26:37 +0000 (18:26 +0000)]
CGI: pad error responses with 512 bytes of spaces so IE will display them
IE displays its own error responses unless the server's was >= 512 bytes.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807
Simon McVittie [Sat, 31 Jan 2009 18:09:24 +0000 (18:09 +0000)]
CGI: set up goto hook so that /ikiwiki.cgi?do=goto can be an Apache ErrorDocument
Simon McVittie [Sat, 31 Jan 2009 18:07:42 +0000 (18:07 +0000)]
CGI: add cgi_page_from_404(), which remaps a path like $REDIRECT_URL to an IkiWiki page name
Also add a regression test
Simon McVittie [Sat, 31 Jan 2009 18:06:44 +0000 (18:06 +0000)]
IkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment
This is useful to act as an Apache 404 ErrorDocument.
Simon McVittie [Sat, 31 Jan 2009 16:51:13 +0000 (16:51 +0000)]
CGI: if the page is missing, give the "missing page" a 404 status
Simon McVittie [Sat, 31 Jan 2009 15:05:17 +0000 (15:05 +0000)]
CGI: document why commenter and recentchanges_link are supported
Simon McVittie [Sat, 31 Jan 2009 14:49:25 +0000 (14:49 +0000)]
recentchanges: delete CGI hook in favour of the global one
Simon McVittie [Sat, 31 Jan 2009 14:49:12 +0000 (14:49 +0000)]
comments: delete cgi hook in favour of the global one
Simon McVittie [Sat, 31 Jan 2009 14:48:44 +0000 (14:48 +0000)]
CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page
This can replace equivalent functionality in comments and recentchanges.
Simon McVittie [Sat, 31 Jan 2009 14:36:23 +0000 (14:36 +0000)]
CGI: add cgi_goto(CGI, [page])
This redirects to the given page (or if none is given, the page parameter
given to the CGI), or displays an error with a create link if the page
doesn't exist.
Joey Hess [Fri, 30 Jan 2009 20:17:53 +0000 (15:17 -0500)]
formatting
Joey Hess [Fri, 30 Jan 2009 20:15:36 +0000 (15:15 -0500)]
review=
Joey Hess [Fri, 30 Jan 2009 19:07:03 +0000 (14:07 -0500)]
merge dups
Víctor Moral [Fri, 30 Jan 2009 17:15:22 +0000 (18:15 +0100)]
- Update spanish translation.
Joey Hess [Thu, 29 Jan 2009 19:47:11 +0000 (14:47 -0500)]
add news item for ikiwiki 3.03
Joey Hess [Thu, 29 Jan 2009 19:45:58 +0000 (14:45 -0500)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Thu, 29 Jan 2009 19:44:48 +0000 (14:44 -0500)]
releasing version 3.03
http://weakish.int.eu.org/ [Thu, 29 Jan 2009 15:28:32 +0000 (10:28 -0500)]
removed
http://weakish.int.eu.org/ [Thu, 29 Jan 2009 14:39:56 +0000 (09:39 -0500)]
use mercurial instead of hg when set rcs option
Joey Hess [Wed, 28 Jan 2009 21:52:26 +0000 (16:52 -0500)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Wed, 28 Jan 2009 21:51:19 +0000 (16:51 -0500)]
close this, we have comments now
intrigeri [Tue, 27 Jan 2009 18:45:12 +0000 (19:45 +0100)]
contrib/po: announce my meta-po integration branch
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 27 Jan 2009 18:35:38 +0000 (19:35 +0100)]
po/todo: drop a note about my meta-po branch
Signed-off-by: intrigeri <intrigeri@boum.org>
Joey Hess [Tue, 27 Jan 2009 18:20:33 +0000 (13:20 -0500)]
response
Joey Hess [Tue, 27 Jan 2009 18:14:53 +0000 (13:14 -0500)]
thought
Joey Hess [Tue, 27 Jan 2009 17:51:13 +0000 (12:51 -0500)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
intrigeri [Tue, 27 Jan 2009 17:16:56 +0000 (18:16 +0100)]
contrib/po: misc answers and questions
Step by step... :)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 27 Jan 2009 16:55:46 +0000 (17:55 +0100)]
po/todo: take note of the commit that will need to be reverted later
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 27 Jan 2009 16:52:32 +0000 (17:52 +0100)]
po: remove all dependencies on nicepagetitle
... as my meta branch probably won't be merged before the po plugin is, contrary
to what I was originally supposing.
This implies removing the po_translation_status_in_links and
po_strictly_refresh_backlinks options.
Added a note to the TODO section to think of bringing these features back later,
as they really enhance user experience on a translatable wiki.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 27 Jan 2009 16:22:38 +0000 (17:22 +0100)]
rename hook: fixed half, added proposal for the other half
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 27 Jan 2009 15:57:52 +0000 (16:57 +0100)]
rename hook: instead of modifying the passed-by-name array, return a copy
This is intended to solve Joey's concerns expressed on
http://ikiwiki.info/todo/need_global_renamepage_hook/, i.e. the need to make it
possible to use this hook from external plugins.
A plugin using this hook still can add/modify/remove elements of the
@torename array.
Signed-off-by: intrigeri <intrigeri@boum.org>
Joey Hess [Tue, 27 Jan 2009 01:39:12 +0000 (20:39 -0500)]
update
Joey Hess [Tue, 27 Jan 2009 01:33:55 +0000 (20:33 -0500)]
typo
Joey Hess [Tue, 27 Jan 2009 01:17:02 +0000 (20:17 -0500)]
fix directive
Joey Hess [Tue, 27 Jan 2009 01:15:34 +0000 (20:15 -0500)]
underlay: New plugin, allows pulling in additional files not in version control. (smcv)
Joey Hess [Tue, 27 Jan 2009 01:13:15 +0000 (20:13 -0500)]
Merge commit 'smcv/underlay'
Joey Hess [Tue, 27 Jan 2009 01:11:33 +0000 (20:11 -0500)]
meta: New "updated" metadata specifies a fake modification time for a page, to be output into RSS and Atom feeds. (smcv)
Joey Hess [Tue, 27 Jan 2009 01:05:36 +0000 (20:05 -0500)]
Merge commit 'smcv/updated'
Joey Hess [Tue, 27 Jan 2009 01:02:50 +0000 (20:02 -0500)]
followup
Joey Hess [Tue, 27 Jan 2009 00:46:24 +0000 (19:46 -0500)]
comments
Joey Hess [Tue, 27 Jan 2009 00:41:35 +0000 (19:41 -0500)]
rename hook issues
Joey Hess [Tue, 27 Jan 2009 00:23:21 +0000 (19:23 -0500)]
close bug on this branch
Joey Hess [Tue, 27 Jan 2009 00:13:15 +0000 (19:13 -0500)]
hook function names should be the same as the hook name
intrigeri [Mon, 26 Jan 2009 23:27:41 +0000 (00:27 +0100)]
contrib/po: backlinks=>dependencies is now an option
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 23:19:41 +0000 (00:19 +0100)]
po: make the "backlinks involve dependencies" feature optional
It can now be configured with the po_strictly_refresh_backlinks setting.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 23:02:15 +0000 (00:02 +0100)]
the rename hooks names waltz seems over
Another set of hooks would not endure such heavy renaming, but the rename* hooks
actually do ;)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 23:00:00 +0000 (00:00 +0100)]
revert renamepage's hook original name
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:47:34 +0000 (23:47 +0100)]
need_global_renamepage_hook: s/suggest/will
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:47:02 +0000 (23:47 +0100)]
contrib/po: update after implementing suggested changes
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:21:14 +0000 (23:21 +0100)]
po: bring back a useful use of scalar
... that was removed in
68869d664b978b063c9181d024edb34a63306c33
Without this scalar, a two-cells array is passed to $template->param, which
builds a hash with an odd number of elements.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:12:16 +0000 (23:12 +0100)]
plugins/po: talk about the po4a version in the first lines
... as it seems it can be missed if I keep it only in the security section.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:08:53 +0000 (23:08 +0100)]
suggest a po4a version not subject to DoS
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:07:19 +0000 (23:07 +0100)]
only pass named parameters to the canremove hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 22:02:31 +0000 (23:02 +0100)]
only pass named parameters to the canrename hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 21:54:40 +0000 (22:54 +0100)]
po(formbuilder): stop hunting down non-existent cases
After some thinking about it, I can't find why the type of a page being created
in the CGI could be restricted to po. So the previous case seems enough.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 26 Jan 2009 21:51:50 +0000 (22:51 +0100)]
Merge commit 'upstream/master' into prv/po
intrigeri [Mon, 26 Jan 2009 21:32:31 +0000 (22:32 +0100)]
po and doc/todo/need_global_renamepage_hook: response
Signed-off-by: intrigeri <intrigeri@boum.org>
Joey Hess [Mon, 26 Jan 2009 19:21:49 +0000 (14:21 -0500)]
new bug report
Joey Hess [Mon, 26 Jan 2009 19:13:52 +0000 (14:13 -0500)]
review
Joey Hess [Mon, 26 Jan 2009 19:00:28 +0000 (14:00 -0500)]
add mising hooks and fix syntax error
Joey Hess [Mon, 26 Jan 2009 18:51:31 +0000 (13:51 -0500)]
remove unnecessary returns
check_canremove/canrename is called only for its side effect (of failing if
removal is not allowed), its return value is never used and returning
something makes that unclear
Joey Hess [Mon, 26 Jan 2009 18:37:57 +0000 (13:37 -0500)]
don't add new exported warning function
Nothing in the po plugin actually uses this function.
The benefit of adding the function in general is debatable, but I'd
prefer to keep the changes involved in merging po at a minimum.
Joey Hess [Mon, 26 Jan 2009 18:35:50 +0000 (13:35 -0500)]
remove redundant use
use is file-scoped so warnings and strict are already enabled
inside the second package, and IkiWiki is already loaded
(though not imported into this context)
Joey Hess [Mon, 26 Jan 2009 18:33:02 +0000 (13:33 -0500)]
non-code changes
Joey Hess [Mon, 26 Jan 2009 18:28:57 +0000 (13:28 -0500)]
more unnecessary parens
Joey Hess [Mon, 26 Jan 2009 18:25:05 +0000 (13:25 -0500)]
avoid keeping running if a DOS attack is possible
Joey Hess [Mon, 26 Jan 2009 18:24:33 +0000 (13:24 -0500)]
remove unnecessary parens
Joey Hess [Mon, 26 Jan 2009 18:21:33 +0000 (13:21 -0500)]
another useless use of scalar
scalar(undef) is undef, so using scalar here had no effect.
Instead make the function return "", probably avoiding an uninitialized
value warning.
Joey Hess [Mon, 26 Jan 2009 18:17:14 +0000 (13:17 -0500)]
remove useless uses of scalar
if (scalar @array) is written idiomatically in perl as
if (@array).
Joey Hess [Mon, 26 Jan 2009 18:15:29 +0000 (13:15 -0500)]
improve some english
I'm still not happy with the clarity of this warning message.
I don't understand when it could happen or why a warning is needed.
Joey Hess [Mon, 26 Jan 2009 18:10:37 +0000 (13:10 -0500)]
avoid standalone -e or foo syntax
I prefer to use either of the other two syntaxes perl offers, and not this
one.
Joey Hess [Mon, 26 Jan 2009 18:08:25 +0000 (13:08 -0500)]
avoid mixing english with translation
"google search" is english which would get mixed in with translated text.
Instead, usr just the plugin name.
Joey Hess [Mon, 26 Jan 2009 18:05:38 +0000 (13:05 -0500)]
Merge branch 'master' into po
qiang [Mon, 26 Jan 2009 10:35:55 +0000 (05:35 -0500)]
Joey Hess [Mon, 26 Jan 2009 04:13:14 +0000 (23:13 -0500)]
git: Fix malformed utf8 recieved from git.
If git log outputs malformed utf8 in, eg, usernames, detect it and fix it
up. This avoids commits such as
f71abc92aa279fbe0b7578b8c4752d775dd4a259
breaking things.
Joey Hess [Mon, 26 Jan 2009 04:02:11 +0000 (23:02 -0500)]
update
Joey Hess [Mon, 26 Jan 2009 03:59:20 +0000 (22:59 -0500)]
update
Joey Hess [Mon, 26 Jan 2009 03:44:38 +0000 (22:44 -0500)]
typo
Joey Hess [Mon, 26 Jan 2009 03:30:28 +0000 (22:30 -0500)]
format moderation queue only at end, avoid O(N^3) bug
It was calling format hooks for each comment on the page.
When relativedate is enabled, that made it insert <script> tags
for each comment. And the browser loaded the same script over and over,
which was slow on its own. But that was nothing compared to running
the onload even over and over.. especially since the hook system
added a new call to the hook each time it loaded.
For a page with 10 comments, that caused the relativedate DOM parsing
code to run 1000 times, I think. Anyway, it was sloow. Now it runs once.