Commit Graph

6633 Commits (dcab5e2e48275dbeb3bf514c68826e73abed08bc)

Author SHA1 Message Date
Joey Hess dcab5e2e48 template: Add support for a BASENAME variable. 2008-07-10 15:25:42 -04:00
Joey Hess c52493422b web commit by intrigeri: initial bug submission 2008-07-10 15:02:25 -04:00
Joey Hess ac4a11ba50 web commit by intrigeri: added opinion + patch 2008-07-10 14:56:52 -04:00
Joey Hess 5d26ded381 work around CGI::Session constructor issues
The constructor can fail with a useless error message if module fail to
load. Work around this by evaling it, and checking for failures, and
printing CGI::Session->errstr to get a more useful message.
2008-07-10 13:17:56 -04:00
Joey Hess f00e5a8a89 web commit by intrigeri: removed misunderstood references to pagetemplate, added patch against plugins/template 2008-07-10 04:32:24 -04:00
Josh Triplett b2a708b90e debian/changelog: fix typo in old entry 2008-07-09 23:51:32 -07:00
Josh Triplett 1aab048e81 ikiwiki-transition: Fix command-line processing so the prefix_directives transition works again. 2008-07-09 23:42:34 -07:00
Joey Hess 8cafbc5de6 reviewed this again 2008-07-10 00:36:57 -04:00
Joey Hess 73c7c4ebf7 document setup plugins 2008-07-10 00:19:35 -04:00
Joey Hess aa1f0080a8 clarifications, comments 2008-07-09 22:47:06 -04:00
Joey Hess fb1aaacd90 fix changelog 2008-07-09 22:40:05 -04:00
Joey Hess 4e02dead14 Make it possible to load setup files w/o running them. Code needing to do so can call IkiWiki::Setup::load, and the values will be loaded into %IkiWiki::Setup::setup. 2008-07-09 22:39:26 -04:00
Joey Hess 6ebb411e8b add news item for ikiwiki 2.53 2008-07-09 17:01:10 -04:00
Joey Hess e798633159 releasing version 2.53 2008-07-09 16:59:53 -04:00
Joey Hess 06709cdf31 improve error message if virus checker fails w/o output 2008-07-09 16:53:03 -04:00
Joey Hess f39a3c1559 web commit by intrigeri: initial wishlist 2008-07-09 16:14:30 -04:00
Joey Hess 2caf01e7dd web commit by http://jcflack.myopenid.com/ 2008-07-09 08:24:14 -04:00
Joey Hess c273bd8eb3 web commit by http://jcflack.myopenid.com/ 2008-07-09 08:20:33 -04:00
Joey Hess 8c48db5be2 web commit by http://ptecza.myopenid.com/: * Confirmation and thanks 2008-07-09 04:27:10 -04:00
Joey Hess 3c82db72c4 remove patch tag 2008-07-09 02:05:57 -04:00
Joey Hess ee5585f7d9 close 2008-07-09 02:02:26 -04:00
Joey Hess 79ffb09ca2 close 2008-07-09 02:02:03 -04:00
Joey Hess 458e5dc65f Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-07-09 00:25:15 -04:00
Joey Hess 65c984041c testing 2008-07-09 00:24:59 -04:00
Joey Hess ec8f5a333b web commit by bremner: fix my name 2008-07-09 00:20:39 -04:00
Joey Hess 0546e6df5a mention github mirror 2008-07-08 22:47:28 -04:00
Joey Hess 8e234268c9 testing 2008-07-08 22:44:52 -04:00
Joey Hess 90f63e0f53 testing 2008-07-08 22:30:43 -04:00
Joey Hess 744ead213a testing 2008-07-08 22:29:24 -04:00
Joey Hess 6e5c6bc4c3 testing 2008-07-08 22:27:38 -04:00
Joey Hess 3d2309b60b testing 2008-07-08 22:26:37 -04:00
Joey Hess 2449c596af otl: Support utf-8 files. (Recai Oktaş) 2008-07-08 20:52:30 -04:00
Joey Hess 849792d4d8 response 2008-07-08 20:47:29 -04:00
Joey Hess b774349f39 web commit by https://id.mayfirst.org/jamie/ 2008-07-08 20:42:28 -04:00
Joey Hess 479407da4d web commit by https://id.mayfirst.org/jamie/ 2008-07-08 20:41:45 -04:00
Joey Hess 7541622fe9 response 2008-07-08 19:28:20 -04:00
Joey Hess 61479665b4 web commit by AndrewGreenberg: bad formatting on bug report, sorry. 2008-07-08 19:15:40 -04:00
Joey Hess ae4d377946 web commit by AndrewGreenberg: Added nasty URL edit bug in 2.52. 2008-07-08 19:14:11 -04:00
Joey Hess e0577bc944 not yet released 2008-07-08 18:44:56 -04:00
Joey Hess 3e8abb8b53 response 2008-07-08 18:35:48 -04:00
Joey Hess 2897749a80 web commit by mrled 2008-07-08 18:13:49 -04:00
Joey Hess 03d7f84f28 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Conflicts:

	doc/bugs/attachment:_failed_to_get_filehandle.mdwn
2008-07-08 18:12:33 -04:00
Joey Hess ad02f69836 attachment: Support perl 5.8's buggy version of CGI.pm.
This is truely horribly disgusting. CGI::tmpFileName, in current perls, is
an undocumented function (which should be a clue..) that takes the original
filename of an uploaded attachment, and returns the name of the tempfile
that CGI has stored it in.

In old perls, though, CGI::tmpFileName does not take a filename. It takes
a key from the object's {'.tmpfiles'} hash. This key is something
crazy like '*Fh::fh00001group' -- apparently the stringification of a
filehandle object.

Just to add to the fun, tmpFileName doesn't take the key, it expects a
refernce to the key. Argh?!

But the fun doesn't stop there, because in perl 5.8, CGI.pm is also broken
in two other ways. The upload() method is supposed to return a filehandle
to the temp file. It doesn't. The param() method is supposed to return
a filehandle to the temp file, that stringifies to the original filename.
It returns just the original filename, no filehandle.

Combine all these bugs, and you end up with this disgusting commit. Since
I have no way to get the filehandle, I *need* to get the tempfile name.
If I had the filehandle, I could probably pass it into tmpFileName, and
it might strigify to the right key name. But I don't, so the only way to
determine the key is to grub through the .tmpfiles hash ourselves.

And finally, one the temp file name is discovered, a filehandle can finally
be obtained by (re)opening it.

I recommend that this commit be reverted when perl 5.8 is a mercifully
faded memory.

I'm really, really, really glad I'm actually being paid for working on
this right now!
2008-07-08 18:10:53 -04:00
Joey Hess 2e5785907d explicitly set form type to multipart
This is the default in unstable's formbuilder, but not in stable's,
and CGI multipart is needed for fule uploads.
2008-07-08 17:18:02 -04:00
Joey Hess fbd9865232 Include ikiwiki.setup in examples in the debian package. 2008-07-08 17:08:00 -04:00
Joey Hess 9e51b2ccb5 web commit by http://ptecza.myopenid.com/: * Thanks! 2008-07-08 17:05:33 -04:00
Joey Hess 905d99e248 web commit by HenrikBrixAndersen: This happens on FreeBSD as well 2008-07-08 17:04:28 -04:00
Joey Hess 4a86457750 reproduced 2008-07-08 16:59:21 -04:00
Joey Hess f529518948 response 2008-07-08 16:21:17 -04:00
Joey Hess 22839215fb check for tempfile being empty 2008-07-08 16:21:01 -04:00