]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/log
git.ikiwiki.info.git
15 years agoWork around XML::Atom strangeness that results in double-encoded posts
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.

15 years ago(no commit message)
http://openid.aol.com/nothatsaknife [Tue, 3 Feb 2009 19:44:22 +0000 (14:44 -0500)]

15 years agonot so fast
Joey Hess [Tue, 3 Feb 2009 18:51:10 +0000 (13:51 -0500)]
not so fast

15 years agoUpdate the to-do list for comments, and explain why we can't have a form for the...
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

15 years agonote
Joey Hess [Tue, 3 Feb 2009 15:43:27 +0000 (10:43 -0500)]
note

15 years agoimplementing pingback using checkcontent hook and the comments plugin
Joey Hess [Tue, 3 Feb 2009 15:37:24 +0000 (10:37 -0500)]
implementing pingback using checkcontent hook and the comments plugin

15 years agoresponse
Joey Hess [Mon, 2 Feb 2009 20:19:56 +0000 (15:19 -0500)]
response

15 years agosome examples
http://smcv.pseudorandom.co.uk/ [Mon, 2 Feb 2009 19:39:45 +0000 (14:39 -0500)]
some examples

15 years agoplease don't make use of [[!meta title]] in parentlinks mandatory...
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...

15 years agorename apache404 -> 404
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.

15 years agodoc updates for goto branch merge
Joey Hess [Sun, 1 Feb 2009 00:10:48 +0000 (19:10 -0500)]
doc updates for goto branch merge

15 years agofactor out IE stupididy workaround
Joey Hess [Sun, 1 Feb 2009 00:02:50 +0000 (19:02 -0500)]
factor out IE stupididy workaround

15 years agoMerge commit 'smcv/goto'
Joey Hess [Sat, 31 Jan 2009 23:52:38 +0000 (18:52 -0500)]
Merge commit 'smcv/goto'

15 years agoRespond with updated goto branch
Simon McVittie [Sat, 31 Jan 2009 23:08:48 +0000 (23:08 +0000)]
Respond with updated goto branch

15 years agoSplit cgi_goto into a goto plugin
Simon McVittie [Sat, 31 Jan 2009 23:01:10 +0000 (23:01 +0000)]
Split cgi_goto into a goto plugin

15 years agoSplit apache404 into an independent 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.

15 years agoone other thought
Joey Hess [Sat, 31 Jan 2009 20:05:06 +0000 (15:05 -0500)]
one other thought

15 years agocomments
Joey Hess [Sat, 31 Jan 2009 19:55:14 +0000 (14:55 -0500)]
comments

15 years agoClarify behaviour of 404 handler and link an example
Simon McVittie [Sat, 31 Jan 2009 18:57:12 +0000 (18:57 +0000)]
Clarify behaviour of 404 handler and link an example

15 years agoRequest review of my 'goto' branch
Simon McVittie [Sat, 31 Jan 2009 18:37:48 +0000 (18:37 +0000)]
Request review of my 'goto' branch

15 years agoAdd tip explaining how to use ikiwiki as a 404 handler
Simon McVittie [Sat, 31 Jan 2009 18:27:54 +0000 (18:27 +0000)]
Add tip explaining how to use ikiwiki as a 404 handler

15 years agoCGI: pad error responses with 512 bytes of spaces so IE will display them
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

15 years agoCGI: set up goto hook so that /ikiwiki.cgi?do=goto can be an Apache ErrorDocument
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

15 years agoCGI: add cgi_page_from_404(), which remaps a path like $REDIRECT_URL to an IkiWiki...
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

15 years agoIkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment
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.

15 years agoCGI: if the page is missing, give the "missing page" a 404 status
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

15 years agoCGI: document why commenter and recentchanges_link are supported
Simon McVittie [Sat, 31 Jan 2009 15:05:17 +0000 (15:05 +0000)]
CGI: document why commenter and recentchanges_link are supported

15 years agorecentchanges: delete CGI hook in favour of the global one
Simon McVittie [Sat, 31 Jan 2009 14:49:25 +0000 (14:49 +0000)]
recentchanges: delete CGI hook in favour of the global one

15 years agocomments: 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

15 years agoCGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to...
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.

15 years agoCGI: add cgi_goto(CGI, [page])
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.

15 years agoformatting
Joey Hess [Fri, 30 Jan 2009 20:17:53 +0000 (15:17 -0500)]
formatting

15 years agoreview=
Joey Hess [Fri, 30 Jan 2009 20:15:36 +0000 (15:15 -0500)]
review=

15 years agomerge dups
Joey Hess [Fri, 30 Jan 2009 19:07:03 +0000 (14:07 -0500)]
merge dups

15 years ago- Update spanish translation.
Víctor Moral [Fri, 30 Jan 2009 17:15:22 +0000 (18:15 +0100)]
- Update spanish translation.

15 years agoadd news item for ikiwiki 3.03
Joey Hess [Thu, 29 Jan 2009 19:47:11 +0000 (14:47 -0500)]
add news item for ikiwiki 3.03

15 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 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

15 years agoreleasing version 3.03
Joey Hess [Thu, 29 Jan 2009 19:44:48 +0000 (14:44 -0500)]
releasing version 3.03

15 years agoremoved
http://weakish.int.eu.org/ [Thu, 29 Jan 2009 15:28:32 +0000 (10:28 -0500)]
removed

15 years agouse mercurial instead of hg when set rcs option
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

15 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
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

15 years agoclose this, we have comments now
Joey Hess [Wed, 28 Jan 2009 21:51:19 +0000 (16:51 -0500)]
close this, we have comments now

15 years agocontrib/po: announce my meta-po integration branch
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>
15 years agopo/todo: drop a note about my meta-po branch
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>
15 years agoresponse
Joey Hess [Tue, 27 Jan 2009 18:20:33 +0000 (13:20 -0500)]
response

15 years agothought
Joey Hess [Tue, 27 Jan 2009 18:14:53 +0000 (13:14 -0500)]
thought

15 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
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

15 years agocontrib/po: misc answers and questions
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>
15 years agopo/todo: take note of the commit that will need to be reverted later
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>
15 years agopo: remove all dependencies on nicepagetitle
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>
15 years agorename hook: fixed half, added proposal for the other half
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>
15 years agorename hook: instead of modifying the passed-by-name array, return a copy
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>
15 years agoupdate
Joey Hess [Tue, 27 Jan 2009 01:39:12 +0000 (20:39 -0500)]
update

15 years agotypo
Joey Hess [Tue, 27 Jan 2009 01:33:55 +0000 (20:33 -0500)]
typo

15 years agofix directive
Joey Hess [Tue, 27 Jan 2009 01:17:02 +0000 (20:17 -0500)]
fix directive

15 years agounderlay: New plugin, allows pulling in additional files not in version control....
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)

15 years agoMerge commit 'smcv/underlay'
Joey Hess [Tue, 27 Jan 2009 01:13:15 +0000 (20:13 -0500)]
Merge commit 'smcv/underlay'

15 years agometa: New "updated" metadata specifies a fake modification time for a page, to be...
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)

15 years agoMerge commit 'smcv/updated'
Joey Hess [Tue, 27 Jan 2009 01:05:36 +0000 (20:05 -0500)]
Merge commit 'smcv/updated'

15 years agofollowup
Joey Hess [Tue, 27 Jan 2009 01:02:50 +0000 (20:02 -0500)]
followup

15 years agocomments
Joey Hess [Tue, 27 Jan 2009 00:46:24 +0000 (19:46 -0500)]
comments

15 years agorename hook issues
Joey Hess [Tue, 27 Jan 2009 00:41:35 +0000 (19:41 -0500)]
rename hook issues

15 years agoclose bug on this branch
Joey Hess [Tue, 27 Jan 2009 00:23:21 +0000 (19:23 -0500)]
close bug on this branch

15 years agohook function names should be the same as the hook name
Joey Hess [Tue, 27 Jan 2009 00:13:15 +0000 (19:13 -0500)]
hook function names should be the same as the hook name

15 years agocontrib/po: backlinks=>dependencies is now an option
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>
15 years agopo: make the "backlinks involve dependencies" feature optional
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>
15 years agothe rename hooks names waltz seems over
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>
15 years agorevert renamepage's hook original name
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>
15 years agoneed_global_renamepage_hook: s/suggest/will
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>
15 years agocontrib/po: update after implementing suggested changes
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>
15 years agopo: bring back a useful use of scalar
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>
15 years agoplugins/po: talk about the po4a version in the first lines
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>
15 years agosuggest a po4a version not subject to DoS
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>
15 years agoonly pass named parameters to the canremove hook
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>
15 years agoonly pass named parameters to the canrename hook
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>
15 years agopo(formbuilder): stop hunting down non-existent cases
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>
15 years agoMerge commit 'upstream/master' into prv/po
intrigeri [Mon, 26 Jan 2009 21:51:50 +0000 (22:51 +0100)]
Merge commit 'upstream/master' into prv/po

15 years agopo and doc/todo/need_global_renamepage_hook: response
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>
15 years agonew bug report
Joey Hess [Mon, 26 Jan 2009 19:21:49 +0000 (14:21 -0500)]
new bug report

15 years agoreview
Joey Hess [Mon, 26 Jan 2009 19:13:52 +0000 (14:13 -0500)]
review

15 years agoadd mising hooks and fix syntax error
Joey Hess [Mon, 26 Jan 2009 19:00:28 +0000 (14:00 -0500)]
add mising hooks and fix syntax error

15 years agoremove unnecessary returns
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

15 years agodon't add new exported warning function
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.

15 years agoremove redundant use
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)

15 years agonon-code changes
Joey Hess [Mon, 26 Jan 2009 18:33:02 +0000 (13:33 -0500)]
non-code changes

15 years agomore unnecessary parens
Joey Hess [Mon, 26 Jan 2009 18:28:57 +0000 (13:28 -0500)]
more unnecessary parens

15 years agoavoid keeping running if a DOS attack is possible
Joey Hess [Mon, 26 Jan 2009 18:25:05 +0000 (13:25 -0500)]
avoid keeping running if a DOS attack is possible

15 years agoremove unnecessary parens
Joey Hess [Mon, 26 Jan 2009 18:24:33 +0000 (13:24 -0500)]
remove unnecessary parens

15 years agoanother useless use of scalar
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.

15 years agoremove useless uses of scalar
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).

15 years agoimprove some english
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.

15 years agoavoid standalone -e or foo syntax
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.

15 years agoavoid mixing english with translation
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.

15 years agoMerge branch 'master' into po
Joey Hess [Mon, 26 Jan 2009 18:05:38 +0000 (13:05 -0500)]
Merge branch 'master' into po

15 years ago(no commit message)
qiang [Mon, 26 Jan 2009 10:35:55 +0000 (05:35 -0500)]

15 years agogit: Fix malformed utf8 recieved from git.
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.

15 years agoupdate
Joey Hess [Mon, 26 Jan 2009 04:02:11 +0000 (23:02 -0500)]
update

15 years agoupdate
Joey Hess [Mon, 26 Jan 2009 03:59:20 +0000 (22:59 -0500)]
update

15 years agotypo
Joey Hess [Mon, 26 Jan 2009 03:44:38 +0000 (22:44 -0500)]
typo

15 years agoformat moderation queue only at end, avoid O(N^3) bug
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.