Commit Graph

1037 Commits (9115e33176a0baa6fb600897e843916a51daed1e)

Author SHA1 Message Date
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 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 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 8cac2ac23e web commit by http://ptecza.myopenid.com/: * The bug still occurs 2008-07-08 16:11:18 -04:00
Joey Hess 6f3c980e2b undef $fh before opening 2008-07-08 12:16:36 -04:00
Joey Hess 6fc21e9d3d web commit by http://ptecza.myopenid.com/: * Still no success 2008-07-08 11:56:31 -04:00
Joey Hess bae7306828 response 2008-07-08 11:47:03 -04:00
Joey Hess 66f35e30dc another try at dealing with CGI.pm problem
open the temp file if all attempts to get a fd fail
2008-07-08 11:25:30 -04:00
Joey Hess 5ccd0cb518 web commit by http://ptecza.myopenid.com/: * Debugging again 2008-07-08 11:15:48 -04:00
Joey Hess fd6ebaeee7 possible fix 2008-07-08 10:43:45 -04:00
Joey Hess 0ffe0872c1 web commit by http://ptecza.myopenid.com/: * Next debbuging 2008-07-08 10:24:24 -04:00
Joey Hess fac6743cad new thing to try 2008-07-08 10:16:29 -04:00
Joey Hess 0c9a504948 fix fix 2008-07-08 10:05:57 -04:00
Joey Hess f8a86765d2 close 2008-07-08 10:04:43 -04:00
Joey Hess 42dcf37016 web commit by http://ptecza.myopenid.com/: * Missing Apache2 version 2008-07-08 10:00:48 -04:00
Joey Hess 99113e50ef web commit by http://ptecza.myopenid.com/: * Response 2008-07-08 09:58:33 -04:00
Joey Hess 04319b030c split out separate bug 2008-07-08 09:49:29 -04:00
Joey Hess 7e16fa3a1e response 2008-07-08 09:46:29 -04:00
Joey Hess f156308aef attachment: Fix an uninitialised value warning when editing a page that currently has no attachments. 2008-07-08 09:40:46 -04:00
Joey Hess db77e342fa web commit by http://ptecza.myopenid.com/: * Problem with colon in report page name 2008-07-08 06:42:33 -04:00
Joey Hess 7977fe382a web commit by http://ptecza.myopenid.com/: * Problem with uploading attachments 2008-07-08 06:29:20 -04:00
Joey Hess a3f6385448 web commit by http://ptecza.myopenid.com/: * Thanks! 2008-07-08 04:27:12 -04:00
Joey Hess b37a98c207 web commit by http://www.openidfrance.fr/beaufils 2008-07-07 15:11:57 -04:00
Joey Hess f1b86d1016 response 2008-07-07 12:07:47 -04:00
Joey Hess 14d959b246 web commit by http://ptecza.myopenid.com/: * Enabling attachment plugin 2008-07-07 08:44:43 -04:00
Joey Hess 43e0691a50 search: generate configuration files once only when rebuilding (Gabriel McManus) 2008-07-07 01:55:06 -04:00
Joey Hess 85c75c8f9d web commit by http://gmcmanus.myopenid.com/: search: create configuration once only on rebuild 2008-07-07 00:57:39 -04:00
Joey Hess 05124f9a86 editpage escaping fixes
* The editpage form now uses the raw page name, not the page title, in its
  'page' cgi parameter. Using the title was ambiguous and made it
  impossible to tell between some pages, like "foo/bar" and "foo__47__bar",
  sometimes causing the wrong page to be edited.
* This change means that some edit links need to be updated.
  Force a rebuild on upgrade to this version.
* Above change also allowed really fixing escaped slashes from the blogpost
  form.
2008-07-06 15:52:04 -04:00
Joey Hess 4bf7785760 response 2008-07-06 14:07:33 -04:00
Joey Hess 674ed7e706 response 2008-07-06 14:05:01 -04:00
Joey Hess 17bb3cec42 rm 2008-07-06 13:58:47 -04:00
Joey Hess bb3036317d web commit by http://www.openidfrance.fr/beaufils 2008-07-05 22:18:04 -04:00
Joey Hess f0ff71af55 web commit by http://www.openidfrance.fr/beaufils 2008-07-05 22:04:12 -04:00
Joey Hess 8b59050ea7 web commit by http://www.openidfrance.fr/beaufils 2008-07-05 21:52:03 -04:00
Joey Hess f9ddfe56b9 web commit by http://www.openidfrance.fr/beaufils 2008-07-05 21:51:23 -04:00
Joey Hess f5dca442fe web commit by http://www.openidfrance.fr/beaufils 2008-07-05 21:50:47 -04:00
Joey Hess 6a863b58a6 web commit by http://www.openidfrance.fr/beaufils 2008-07-05 21:49:46 -04:00
Joey Hess 4db44caf06 web commit by http://www.openidfrance.fr/beaufils 2008-07-05 21:45:21 -04:00
Joey Hess 4d7ccdc8e5 web commit by http://www.openidfrance.fr/beaufils 2008-07-05 21:44:03 -04:00
Joey Hess 69108f446f web commit by http://tychoish.livejournal.com/: further clarification. 2008-07-04 08:03:54 -04:00
Joey Hess 560372bf94 web commit by http://subvert.org.uk/~bma/ 2008-07-04 03:21:16 -04:00
Joey Hess df736d3089 web commit by http://subvert.org.uk/~bma/ 2008-07-04 03:14:29 -04:00
Joey Hess 2d64fdd22e web commit by http://tychoish.livejournal.com/ 2008-07-03 23:00:37 -04:00
Joey Hess cb06a01b75 web commit by http://jcflack.myopenid.com/ 2008-07-03 18:21:07 -04:00
Joey Hess f7755e5e01 web commit by http://jcflack.myopenid.com/ 2008-07-03 18:20:25 -04:00
Joey Hess 77ebc0ad8c web commit by http://jcflack.myopenid.com/ 2008-07-03 13:40:30 -04:00
Joey Hess 2354613391 response; move to bug report 2008-07-02 16:43:13 -04:00
Joey Hess 19749d0c5b web commit by http://liw.fi/: commented on ü and ikiwiki 2.50 2008-07-01 14:29:35 -04:00
Joey Hess 524ee496e3 remove bad link 2008-06-29 14:18:00 -04:00
Joey Hess 8ab0d60271 web commit by http://ptecza.myopenid.com/: * Plural 2008-06-29 11:15:38 -04:00
Joey Hess c44ae04702 web commit by http://ptecza.myopenid.com/: * Thanks! 2008-06-29 11:02:55 -04:00
Joey Hess b66f9a1981 call format hooks when generating page previews
* toc: Revert change in 2.45 that made it run at sanitize time. This breaks
  use of toc in a sidebar.
* Call format hooks when generating page previews, thus fixing toc display
  there, as well as fixing inlins to again display in page previews, since
  it's started using format hooks. This also allows several other things,
  like embed, that use format hooks, to work during page preview time.
* Format hooks should not rely on getting an entire html document, as they
  will only get the body during page preview.
* toggle: Deal with preview mode when adding javascript.
2008-06-28 23:08:24 -04:00
Joey Hess f8fe1247bd bug 2008-06-28 22:46:12 -04:00
Joey Hess 00503f25cd smiley: Generate links relative to the destpage. (Fixes a reversion from 2.41.) 2008-06-28 16:58:43 -04:00
Joey Hess 5356790ece web commit by http://ptecza.myopenid.com/: * Fixed example 2008-06-27 10:24:22 -04:00
Joey Hess 6880183131 web commit by http://ptecza.myopenid.com/: * Bug report 2008-06-27 10:16:37 -04:00
Joey Hess 38a2b13b6a add bug link 2008-06-24 17:25:26 -04:00
Joey Hess bd7edfd9ca textile: The Text::Textile perl module has some regexps that fail if input is flagged as utf-8, but contains invalid characters such as 0x92. To prevent it from crashing, re-encode the content before calling it, which will ensure that it's really utf-8. 2008-06-16 15:43:37 -04:00
Joey Hess 0053217488 web commit by http://alcopop.org/me/openid/: ikiwiki version is 2.50 2008-06-16 15:19:37 -04:00
Joey Hess 2db2e35a05 web commit by http://alcopop.org/me/openid/: bug with bad input text 2008-06-16 15:13:27 -04:00
Joey Hess 99c96480c0 web commit by http://ptecza.myopenid.com/: * Thanks! 2008-06-16 03:36:03 -04:00
Joey Hess 524c21ffbd web commit by http://sabr.myopenid.com/ 2008-06-15 17:32:13 -04:00
Joey Hess 0f83e169e0 close as dup 2008-06-15 15:35:09 -04:00
Joey Hess 878e74238e Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-06-14 11:39:34 -04:00
Joey Hess 5e1b31fad6 web commit by http://telemachos.myopenid.com/ 2008-06-14 09:25:30 -04:00
Joey Hess 751706b7a5 response 2008-06-13 16:42:06 -04:00
Joey Hess aad18ffc51 web commit by http://ptecza.myopenid.com/: * Thanks and question about Xapian 2008-06-13 16:02:47 -04:00
Joey Hess 5807f1de04 fix two build bugs
* ikiwiki-mass-rebuild: Make group list comparison more robust.
* search: Work around xapian bug #486138 by only stemming locales
  in a whitelist.
2008-06-13 13:05:44 -04:00
Joey Hess 340f219818 response 2008-06-13 13:04:59 -04:00
Joey Hess eab909095b response 2008-06-13 12:26:59 -04:00
Joey Hess 6fe6857f7e web commit by http://alcopop.org/me/openid/: maybe for some future backwards-compatibility killing release? 2008-06-13 11:49:22 -04:00
Joey Hess cdd48716be web commit by http://ptecza.myopenid.com/: * Bug report 2008-06-13 10:41:25 -04:00
Joey Hess d59b565b53 web commit by buo: libdir does have an effect 2008-06-13 10:34:55 -04:00
Joey Hess 332e0b4e3c question 2008-06-12 14:14:07 -04:00
Joey Hess a65dd073cf this problem makes less sense the more information I get 2008-06-12 14:10:24 -04:00
Joey Hess 8afa1e2304 web commit by http://telemachos.myopenid.com/ 2008-06-11 10:09:52 -04:00
Joey Hess 3d4859262d web commit by http://telemachos.myopenid.com/ 2008-06-11 10:08:35 -04:00
Joey Hess fc79199ccd response 2008-06-10 14:35:52 -04:00
Joey Hess 3b82819049 web commit by buo: strace run 2008-06-10 14:31:03 -04:00
Joey Hess e6a6893117 followup 2008-06-10 13:55:24 -04:00
Joey Hess c48efcf8a4 not done 2008-06-10 13:49:43 -04:00
Joey Hess 3a76a58e1e fix link 2008-06-10 13:36:21 -04:00
Joey Hess 2fc11033f5 web commit by buo: Possible workaround 2008-06-10 09:11:42 -04:00
Joey Hess 3c4ac2727b web commit by http://telemachos.myopenid.com/ 2008-06-10 07:44:26 -04:00
Joey Hess 970e1a571e not reproducible on unstable 2008-06-04 21:00:24 -04:00
Joey Hess 47b5417ac0 already fixed 2008-06-04 01:58:52 -04:00
Joey Hess 811c76f85e already fixed 2008-06-04 01:57:59 -04:00
Joey Hess 7d87bf9e78 fix 2008-06-04 01:54:58 -04:00
Joey Hess 81719b40a4 closing, fixed in documentation 2008-06-04 01:54:23 -04:00
Joey Hess 95f93e6848 response 2008-06-04 01:53:49 -04:00
Joey Hess 44fde6cbff first pass at doing xapian indexing
Still some TODOs to fill in.
2008-06-03 21:14:56 -04:00
Joey Hess d370052672 use PERL 2008-06-02 12:14:09 -04:00
Joey Hess e76c997e86 web commit by stmpeters 2008-06-02 11:37:45 -04:00
Joey Hess 99e5e6dd08 inline: The optimisation in 2.41 broke nested inlines. Detect those and avoid overoptimising. 2008-05-31 15:10:23 -04:00
Joey Hess ff6433179e web commit by http://willthompson.co.uk/: file a bug about nested inlines failing 2008-05-31 13:51:50 -04:00
Joey Hess eb288969b5 fix link 2008-05-30 18:31:14 -04:00
Joey Hess ad5d49f25a fix links 2008-05-30 18:30:28 -04:00
Joey Hess 22879eba60 fix link 2008-05-30 18:29:40 -04:00
Joey Hess d5a2fc9334 fix link 2008-05-30 18:29:04 -04:00
Joey Hess f543303bf0 web commit by http://liw.fi/: uuml html entity in feeds confuses ikiwiki when aggregating 2008-05-29 02:51:40 -04:00
Joey Hess 8d5c6725e2 web commit by http://kaizer.se/wiki/contact/: fix <pre> formatting 2008-05-23 07:36:37 -04:00
Joey Hess 88096ea9ab web commit by http://kaizer.se/wiki/contact/: bugs on including html (as raw as possible) 2008-05-23 07:34:41 -04:00
Joey Hess 52c570fe1b web commit by buo: More info 2008-05-14 09:42:30 -04:00
Joey Hess fb3d5b4800 Fixes for behavior changes in perl 5.10's CGI
Something has changed in CGI.pm in perl 5.10. It used to not care
if STDIN was opened using :utf8, but now it'll mis-encode utf-8 values
when used that way by ikiwiki. Now I have to binmode(STDIN) before
instantiating the CGI object.

In 57bba4dac1, I changed from decoding
CGI::Formbuilder fields to utf-8, to decoding cgi parameters before setting
up the form object. As of perl 5.10, that approach no longer has any effect
(reason unknown). To get correctly encoded values in FormBuilder forms,
they must once again be decoded after the form is set up.

As noted in 57bba4da, this can cause one set of problems for
formbuilder_setup hooks if decode_form_utf8 is called before the hooks, and
a different set if it's called after. To avoid both sets of problems, call
it both before and after. (Only remaining problem is the sheer ugliness and
inefficiency of that..)

I think that these changes will also work with older perl versions, but I
haven't checked.

Also, in the case of the poll plugin, the cgi parameter needs to be
explcitly decoded before it is used to handle utf-8 values. (This may have
always been broken, not sure if it's related to perl 5.10 or not.)
2008-05-12 20:44:22 -04:00
Joey Hess adb5d92ed7 not just a poll plugin problem 2008-05-12 17:09:40 -04:00
Joey Hess bafb2d7b81 web commit by http://liw.fi/ 2008-05-12 16:26:38 -04:00
Joey Hess 21cd34106d response 2008-05-12 14:10:17 -04:00
Joey Hess e34011afcc web commit by buo: Response 2008-05-09 16:46:40 -04:00
Joey Hess 0168cc3c8b response 2008-05-08 15:53:48 -04:00
Joey Hess 879f3a9403 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-05-08 15:51:41 -04:00
Joey Hess b8d81b7b7f amazon s3 index file improvements
Turns out duplicate index files do not need to be stored when usedirs is in
use, just when it's not. Ikiwiki is quite consistent about using page/ when
usedirs is in use. (The only exception is the search plugin, which needs
fixing.)

This also includes significant code cleanup, removal of a incorrect special
case for empty files, and addition of a workaround for a bug in the amazon
perl module.
2008-05-08 15:51:09 -04:00
Joey Hess 2bf34f1733 web commit by buo: re: question 2008-05-08 14:45:57 -04:00
Joey Hess ca33ec2b9c question 2008-05-08 14:12:44 -04:00
Joey Hess 6bba9b0e4d web commit by http://madduck.net/: closing 2008-05-08 10:59:38 -04:00
Joey Hess a3e1783596 web commit by buo: Removing previous installation fixes compile failure. 2008-05-08 10:29:48 -04:00
Joey Hess 3eb3ff6208 cannot reproduce 2008-05-07 17:10:43 -04:00
Joey Hess 2b5d12f658 web commit by buo: bug: 2.45 fails to compile 2008-05-07 14:47:30 -04:00
Joey Hess 880d098dab template change documentation 2008-05-06 14:33:03 -04:00
Joey Hess cf2652c139 web commit by JeremyReed: why if? 2008-04-28 17:54:32 -04:00
Joey Hess 72cedc59e9 fix formatting 2008-04-28 15:47:11 -04:00
Joey Hess 6412cbfe52 idea 2008-04-28 15:43:06 -04:00
Joey Hess dbb5d11196 Deal with different paths to perl when removing -T flag. 2008-04-28 15:37:17 -04:00
Joey Hess f3eda82c08 web commit by JeremyReed: reply about perl version in filename too. 2008-04-28 14:15:38 -04:00
Joey Hess 0d80b13738 web commit by JeremyReed: reply 2008-04-28 14:11:52 -04:00
Joey Hess 453bdeaf55 response 2008-04-28 13:46:50 -04:00
Joey Hess 9f02ee8634 Add PREFIX/bin to the hardcoded PATH within ikiwiki. 2008-04-28 13:44:37 -04:00
Joey Hess aa4f9fe232 response 2008-04-28 13:38:53 -04:00
Joey Hess 74d98c69b1 web commit by JeremyReed: found problem 2008-04-28 12:47:29 -04:00
Joey Hess bc9a448c58 web commit by JeremyReed: more info. sid is defined in prefs just not edit 2008-04-28 12:32:54 -04:00
Joey Hess 3b16d472c0 web commit by JeremyReed: sid not in form. 2008-04-28 12:09:47 -04:00
Joey Hess e56dd17bcf web commit by JeremyReed: Can't exec "ikiwiki-transition" 2008-04-28 11:44:01 -04:00
Joey Hess 4e0f75a75f web commit by JeremyReed: hard-coded perl path 2008-04-28 11:07:05 -04:00
Joey Hess a64bc76fbe response 2008-04-27 14:31:35 -04:00
Joey Hess 17c276dea5 web commit by JeremyReed: about taint and -T build failure 2008-04-26 20:54:08 -04:00
Joey Hess 143c8770d1 web commit by http://sabr.myopenid.com/ 2008-04-17 08:40:07 -04:00
Joey Hess c8097457a7 web commit by http://sabr.myopenid.com/ 2008-04-13 12:52:22 -04:00
Joey Hess 40c03af378 web commit by http://sabr.myopenid.com/ 2008-04-13 12:08:44 -04:00
Joey Hess f4797af297 web commit by http://sabr.myopenid.com/ 2008-04-12 22:53:53 -04:00
Joey Hess 50e06351ca web commit by http://sabr.myopenid.com/ 2008-04-12 22:46:00 -04:00
Joey Hess 78e740f643 web commit by http://sabr.myopenid.com/ 2008-04-12 22:23:55 -04:00
Joey Hess 3b7b057e01 patch, thoughts 2008-04-12 17:19:32 -04:00
Joey Hess 57035d610e web commit by http://sabr.myopenid.com/ 2008-04-12 13:21:11 -04:00
Joey Hess 26c96e1f10 web commit by http://sabr.myopenid.com/ 2008-04-10 20:18:20 -04:00
Joey Hess 2718fc2b25 response 2008-04-10 19:54:38 -04:00