Commit Graph

15222 Commits (b5a669f34b38da86b1260ac7a5abd7a63cfad4ac)

Author SHA1 Message Date
Joey Hess a61849e954 bugfix for attachments of non-index pages 2011-06-14 15:07:34 -04:00
Joey Hess 04b2a4d676 fix removal of helf attachments
Left out confirmation of removal for held attachments because
a) they're not in the wiki yet, so confirmation is a bit unnecessary
b) it would be hard
c) eases later integration of jquery file upload interface

Also changed where attachments of index are held (to match where they're
stored in the srcdir).

Note that the attachment formbuilder hook was made to run last, so that
the list of attachments is not generated before removal, in the fast path
w/o confirm.
2011-06-14 14:44:20 -04:00
Joey Hess c55a32d3e1 fixed previewing of attachments from holding area 2011-06-14 14:08:13 -04:00
Joey Hess d4d2327400 fixed saving attachments on page save
Also saved on preview, but previewing is a bit broken, does not see the
newly saved attachment yet.
2011-06-14 13:59:56 -04:00
Joey Hess e2cb19ed9e attachment list includes new attachments in holding area
Note that it's possible for an attachment in the holding area to be older
than an attachemnt in the wiki with the same name. I intentionally
show the one in the holding area in this (unlikely) case, since saving the
page will overwrite the wiki's file with the held attachment. It does not
seem worth the bother of doing something more intelligent, since in this
case two people have basically conflicted with one-another.. and both
attachment contents will be stored in revision control in case it needs to
be sorted out.

I had to remove the hyperlink for attachments in the holding area, since
they're not yet live on the web. This could be annoying/confusing. Added
a moseover notice instead.
2011-06-14 13:49:41 -04:00
Joey Hess 8619faaa8b untaint and linkpage the page name used in attachment holding directory 2011-06-14 13:41:07 -04:00
Joey Hess 1d951583a6 store filename in holding dir in linkpage form
Avoids any unpleasantness with .. or other special chars in the attachment
filename.
2011-06-14 13:38:37 -04:00
Joey Hess e08daac239 store attachments in holding area; commit to wiki on page save
This makes uploading a lot of attachments somewhat faster, because
the user does not need to wait for a long website refresh after each
upload. Still probably somewhat slow, since ikiwiki has to run for each
upload.

More importantly, this opens the door for integration of things like
the jquery file upload interface, which allow drag-n-drop and multiple
file uploads to be queued and then ran.

It uses rcs_commit_staged, which leaves out tla and mercurual which lack
that, but since rename, remove, autoindex, etc also use that, I think it's
fine for attachments to also depend on it.

The attachment list is currently broken; it does not look in the holding
area yet, and its links to the attached files won't work since they're not
yet in the wiki. previewing is also currently broken.

Work sponsored by TOVA.
2011-06-14 13:34:36 -04:00
Joey Hess 4c96fce144 refactor 2011-06-14 13:06:59 -04:00
http://jmtd.livejournal.com/ 56370d3ac7 s/as-is/as pre-formatted/ 2011-06-14 11:04:28 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI babf328004 finding, the one morth 2011-06-14 02:49:27 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI 34eda677bd doings 2011-06-14 02:45:29 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI 030adf9c4a findings 2011-06-14 00:01:42 +00:00
Joey Hess 38dd85c799 Merge branch 'master' of ssh://git.ikiwiki.info 2011-06-13 12:50:26 -04:00
Joey Hess d93842ffc7 improve usage message 2011-06-13 12:20:21 -04:00
http://cdombroski.myopenid.com/ 9be66582f0 2011-06-13 15:47:24 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI e1823ced8b these too
This reverts commit 9cd14cda88
2011-06-13 02:10:53 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI f2facbb028 we can see the fnords
This reverts commit 950d6ce453
2011-06-13 02:10:32 +00:00
https://www.google.com/accounts/o8/id?id=AItOawko7YtFjsEK_d2RYWu7Bbd7svypodeTLkc 9cd14cda88 2011-06-13 00:14:23 +00:00
https://www.google.com/accounts/o8/id?id=AItOawko7YtFjsEK_d2RYWu7Bbd7svypodeTLkc 950d6ce453 lorem ipsum text 2011-06-13 00:13:21 +00:00
http://profjim.myopenid.com/ 4bb78a5103 Added a comment 2011-06-12 20:20:13 +00:00
http://profjim.myopenid.com/ 84d0ec4898 Initial post 2011-06-12 20:18:14 +00:00
Joey Hess 303d3c90a7 what? 2011-06-11 14:29:38 -04:00
Joey Hess 1c1e0573c5 move to correct location 2011-06-11 14:25:04 -04:00
simonraven b09ff73c66 encode_entities_numeric please :) 2011-06-11 17:00:02 +00:00
Joey Hess 45fb0371db better long filename detection method
Let's just try to write and fall back to a short ugly filename on error.
2011-06-10 19:04:18 -04:00
Joey Hess d86f248329 Merge branch 'master' of ssh://git.ikiwiki.info 2011-06-10 18:48:22 -04:00
Joey Hess 8e15f664c4 aggregate: Improve checking for too long aggregated filenames.
Two problems fixed:

1. Files are written with a .ikiwiki-new suffix, which has to be taken into
   account.
2. Need to count length of bytes, not of unicode characters.
2011-06-10 18:47:57 -04:00
http://kerravonsen.dreamwidth.org/ 79e1bbd3cc now changed the subset plugin interface 2011-06-10 08:33:18 +00:00
http://kerravonsen.dreamwidth.org/ a80d3edf2a doscan is now called maketrail 2011-06-10 08:13:31 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI dd077fd79b in git now 2011-06-09 17:48:08 +00:00
Joey Hess 72f30a40a3 record email of new users in userinfo for userlist 2011-06-09 10:58:05 -04:00
Joey Hess f3ed43a1ca encode html 2011-06-09 10:46:09 -04:00
Joey Hess cf707d1654 userlist: New plugin, lets admins see a list of users and their info. 2011-06-09 10:10:27 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI 6849c8fab5 code's in git 2011-06-09 08:06:24 +00:00
Joey Hess 1c07047e28 add news item for ikiwiki 3.20110608 2011-06-08 17:52:13 -04:00
Joey Hess 2d52db052e releasing version 3.20110608 2011-06-08 17:51:02 -04:00
Joey Hess 4fdeda0e34 ikiwiki-mass-rebuild: Fix tty hijacking vulnerability by using su. (Once su's related bug #628843 is fixed.) Thanks, Ludwig Nussel. (CVE-2011-1408) 2011-06-08 17:42:07 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnxp2XU8gIribhhGhGuYtU6eMMwHv5gUGI f2dca770da t3h c0d35 2011-06-08 19:41:47 +00:00
Joey Hess ee7ff1486f response 2011-06-08 15:34:27 -04:00
Joey Hess 541ae52617 404 automatically loads goto 2011-06-08 15:31:16 -04:00
http://docwhat.org/ 38021b0a59 2011-06-08 19:27:51 +00:00
http://docwhat.org/ 06a9e1cc41 2011-06-08 19:17:32 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnZ0g2UAijV7RGrKtWPljCCAYHBJ3pwPvM 65b6d1eed4 2011-06-07 02:36:58 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnZ0g2UAijV7RGrKtWPljCCAYHBJ3pwPvM 56c0b5fbcf 2011-06-06 23:14:09 +00:00
http://smcv.pseudorandom.co.uk/ 2d2bda05c2 respond 2011-06-05 22:21:36 +00:00
http://smcv.pseudorandom.co.uk/ 1351df47b1 clarify which is current by clearing this page 2011-06-05 22:15:30 +00:00
http://smcv.pseudorandom.co.uk/ 7f258b8c68 more about the new version 2011-06-05 22:10:45 +00:00
http://smcv.pseudorandom.co.uk/ 1d7edde014 update demo links, bugs 2011-06-05 22:06:17 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnZ0g2UAijV7RGrKtWPljCCAYHBJ3pwPvM e8fee4f261 2011-06-05 19:47:58 +00:00