Commit Graph

8381 Commits (19e34cb62ec8c891f060cbf9b2340510c7cb0331)

Author SHA1 Message Date
Joey Hess 19e34cb62e respond, sheesh 2008-11-18 12:56:02 -05:00
http://mjr.towers.org.uk/ 447d3ae258 Further details 2008-11-18 08:20:30 -05:00
http://mjr.towers.org.uk/ 0eca0b4dff auto-hosting sites 2008-11-18 08:14:57 -05:00
http://smcv.pseudorandom.co.uk/ 28ffff1030 2008-11-18 07:07:25 -05:00
http://smcv.pseudorandom.co.uk/ 1c4a005986 Fix link 2008-11-18 06:58:39 -05:00
http://smcv.pseudorandom.co.uk/ c5a7d98b54 Raw HTML now allowed, joeyh convinced me :-) 2008-11-18 06:14:08 -05:00
http://smcv.pseudorandom.co.uk/ c9bddc1591 update 2008-11-18 05:54:34 -05:00
http://smcv.pseudorandom.co.uk/ c66a3f9ca7 Fix link to htmlbalance 2008-11-18 05:40:23 -05:00
http://smcv.pseudorandom.co.uk/ bd14203c0b update 2008-11-18 05:37:36 -05:00
http://smcv.pseudorandom.co.uk/ 22fb4e4d33 update for rename of plugins/contrib/postcomment.mdwn to plugins/contrib/comments.mdwn 2008-11-18 05:12:53 -05:00
http://smcv.pseudorandom.co.uk/ 284b79b36a update for rename of plugins/contrib/postcomment.mdwn to plugins/contrib/comments.mdwn 2008-11-18 05:12:52 -05:00
http://smcv.pseudorandom.co.uk/ 75a3335399 rename plugins/contrib/postcomment.mdwn to plugins/contrib/comments.mdwn 2008-11-18 05:12:44 -05:00
http://technorati.com/people/technorati/drajt 8f43b3ff8d 2008-11-18 04:48:06 -05:00
http://smcv.pseudorandom.co.uk/ 2953b9d850 response 2008-11-18 04:15:58 -05:00
Joey Hess e307eeda3d html escaping complication
Can't escape things to entities if the template then escapes the entities.
(aggregate doesn't have this problem.)
2008-11-18 02:48:24 -05:00
Joey Hess 15269fed64 improve escaping of wikilinks and preprocessor directives
The old method failed for '[' x 3.
2008-11-18 02:43:17 -05:00
Joey Hess 767bf9c483 Change deb dependencies to list Text::Markdown before markdown (really this time). 2008-11-17 18:46:20 -05:00
https://id.launchpad.net/882/bielawski1 b56b282bf6 stuff 2008-11-17 17:39:10 -05:00
https://id.launchpad.net/882/bielawski1 6f3477bf22 2008-11-17 17:34:19 -05:00
Joey Hess 75f262f44d call decode_utf8 inside eval
holger reported that decode_utf8 was crashing with perl 5.8.8. Earlier, I
thought that passing 0 to the function avoided this with old perls, but
that was apparently not enough, it still crashes. So, put it inside the
eval, so we can at least recover from it crashing.
2008-11-17 15:56:15 -05:00
Joey Hess 7aad3b6047 where can I pull this from? 2008-11-17 15:21:55 -05:00
Joey Hess 2e8c0bce31 initial comments
Done inline on the page, `scuse.
2008-11-17 15:00:33 -05:00
Joey Hess 2e6157e977 don't need libxml-atom-perl now 2008-11-17 14:40:24 -05:00
Joey Hess 345c94dd9d response 2008-11-17 14:36:00 -05:00
Joey Hess 181bdbe1a9 use HTML::Entities 2008-11-17 14:27:11 -05:00
Joey Hess 43039d7d86 modify to skip tests if the neccessary perl modules are not available 2008-11-17 14:22:11 -05:00
Joey Hess e8a945845b use perl modules up front
The old code actually did the same thing, just obfuscated -- since the eval
use wasn't quoted, it used the modules on load. Thus, the error (not to
mentioned the return) was bypassed, and it just failed on load.

But that seems like the right thing to do, really, so just made it clearer
that's what happens.
2008-11-17 14:19:15 -05:00
Joey Hess 87f360dee4 thoughts 2008-11-17 14:10:25 -05:00
Joey Hess c0f4735f1f adding htmlbalance; housekeeping
Used the contrib version of the plugin page since it seemed better than the
other one.
2008-11-17 14:09:53 -05:00
Joey Hess 2d857e6aeb Merge commit 'smcv/htmlbalance' 2008-11-17 14:01:28 -05:00
http://smcv.pseudorandom.co.uk/ e204a2c202 Fix tag directive 2008-11-17 06:44:50 -05:00
http://smcv.pseudorandom.co.uk/ a670bac3e1 Link to postcomment 2008-11-17 06:43:54 -05:00
http://smcv.pseudorandom.co.uk/ c59d9c64a3 Publicise postcomment 2008-11-17 06:42:07 -05:00
http://smcv.pseudorandom.co.uk/ 8f22c2454f Explicitly say that I'd like to get this into ikiwiki 2008-11-17 06:14:51 -05:00
http://smcv.pseudorandom.co.uk/ 913b516b4e Link to third-party htmlbalance plugin 2008-11-17 06:13:46 -05:00
http://smcv.pseudorandom.co.uk/ 0e31e924e8 link to stuff 2008-11-17 06:10:53 -05:00
Simon McVittie e7a840ed9a htmlbalance: new plugin that balances tags by parsing and re-serializing 2008-11-17 10:46:21 +00:00
intrigeri 408d483dc2 reported my need for a global renamepage hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-13 04:38:48 +01:00
Joey Hess 699aa79c2e add news item for ikiwiki 2.70 2008-11-12 18:08:10 -05:00
Joey Hess 31a1a3215b releasing version 2.70 2008-11-12 18:01:46 -05:00
Joey Hess 97cb036811 note fix versions 2008-11-12 17:35:21 -05:00
Joey Hess 716560b7f1 check for invalid utf-8, and toss it back to avoid crashes
Since ikiwiki uses open :utf8, perl assumes that files contain valid utf-8.
If it turns out to be malformed it may later crash while processing strings
read from them, with 'Malformed UTF-8 character (fatal)'.

As at least a quick fix, use utf8::valid as soon as data is read, and if
it's not valid, call encode_utf8 on the string, thus clearing the utf-8
flag. This may cause follow-on encoding problems, but will avoid this
crash, and the input file was broken anyway, so GIGO is a reasonable
response. (I looked at calling decode_utf8 after, but it seemed to cause
more trouble than it was worth. BTW, use open ':encoding(utf8)' avaoids
this problem, but the corrupted data later causes Storable to crash when
writing the index.)

This is a quick fix, clearly imperfect:
- It might be better to explicitly call decode_utf8 when reading files,
  rather than using the IO layer.
- Data read other than by readfile() can still sneak in bad utf-8. While
  ikiwiki does very little file input not using it, stdin for the CGI
  would be one way.
2008-11-12 17:30:54 -05:00
Joey Hess 2c858c9c95 add news item for ikiwiki 2.69 2008-11-11 21:07:06 -05:00
Joey Hess 2ab3132d3b document other files in .ikiwiki 2008-11-11 21:01:16 -05:00
Joey Hess ecd4f0ee55 make unlockwiki drop the cgilock
This is necessary so that things that fork to the background,
like pinger, and inline ping, don't block other cgis from running.

Note that websetup also calls unlockwiki, before refreshing / rebuilding
the wiki. It makes perfect sense for that not to block other cgis.
2008-11-11 20:48:02 -05:00
intrigeri 521d76e508 pagetitle vs meta: announcing a working prototype
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12 01:10:09 +01:00
Joey Hess 50b95a0742 response 2008-11-11 18:34:18 -05:00
Joey Hess d1b22b2524 lockwiki changes
* Stop busy-waiting in lockwiki, as this could delay ikiwiki from waking up
  for up to one second. The bailout code is no longer needed.
* Remove support for unused optional wait parameter from lockwiki.
2008-11-11 15:54:52 -05:00
Joey Hess eef8b966b3 O_CREATE needs mode 2008-11-11 15:53:55 -05:00
Joey Hess 9a48669f1e avoid multiple ikiwiki cgi processes piling up, eating all memory, and thrashing
Fixed by making the cgi wrapper wait on a cgilock.
If you had to set apache's MaxClients low to avoid ikiwiki thrashing
your server, you can now turn it up to a high value.

The downside to this is that a cgi call that doesn't need to call lockwiki
will be serialised by this so only one can run at a time. (For example,
do=search.) There are few such calls, and all of them call loadindex,
so each still eats gobs of memory, so serialising them still seems ok.
2008-11-11 15:40:04 -05:00