Merge branch 'master' into tova

master
Joey Hess 2008-07-23 15:00:07 -04:00
commit 335a6a59e6
7 changed files with 56 additions and 4 deletions

View File

@ -136,7 +136,7 @@ sub formbuilder (@) { #{{{
}
}
$filename=IkiWiki::titlepage(
$filename=IkiWiki::linkpage(
IkiWiki::possibly_foolish_untaint(
attachment_location($form->field('page')).
IkiWiki::basename($filename)));

1
debian/changelog vendored
View File

@ -21,6 +21,7 @@ ikiwiki (2.55) UNRELEASED; urgency=low
page, to avoid confusion.
* Split out error messages from editpage.tmpl into several separate
templates.
* attachment: Do not escape _ when determining attachment filenames.
-- Joey Hess <joeyh@debian.org> Mon, 21 Jul 2008 11:35:46 -0400

View File

@ -0,0 +1,19 @@
I've just noticed that `attachment` plugin escapes the underscore
characters in attached filenames. For example, when I wanted to add
`foo_bar_baz.txt` file, then Ikiwiki added file `foo__95__bar__95__baz.txt`
to my Subversion repo. I hope that the filename is terribly ugly not only
for me ;)
Is it a bug or security feature? --[[Paweł|ptecza]]
>> Update: It's not only problem with attached filenames. I have
>> `mysql/myisam_vs_ndb.mdwn` page in my wiki and attached two
>> images (`myisam_vs_ndb_sql.png` and `myisam_vs_ndb_cpu.png`)
>> and one OpenDocument file (`myisam_vs_ndb.ods`). Ikiwiki placed
>> them into `myisam__95__vs__95__ndb` subdirectory as
>> `myisam__95__vs__95__ndb__95__sql.png`, `myisam__95__vs__95__ndb__95__cpu.png`
>> and `myisam__95__vs__95__ndb.ods` files. When I click "Attachments" link,
>> I can't see my uploaded files, because there are in another subdirectory
>> (`myisam__95__vs__95__ndb` instead of `myisam_vs_ndb`). --[[Paweł|ptecza]]
> [[done]], uses `linkpage` now.

View File

@ -0,0 +1,26 @@
The [[plugins/map]] plugin has inconsistent behaviour. In particular, I have in my wiki some directory structures holding files without wikitext pointers (I point directly to the files from elsewhere). For example, imagine the following file structure in the source dir:
* Assignments.mdwn
* Assignments
* 2004
* Assign1.pdf
* Assign2.pdf
* 2005
* Assign1.pdf
* Assign2.pdf
* 2006
* etc., etc.
When I use map to make a map of this, the result looks more like this:
* Assignments # this is a link to the correct page
* 2004 # this has a create link
* Assign1.pdf
* Assign2.pdf
* Assign1.pdf
* Assign2.pdf
* etc., etc.
Note that while the 2004 directory exists with a create link, the 2005 and 2006 (etc) directories are missing from the site map.
I could imagine including all 'bare' directories in the map, and I could imagine including no 'bare' directories in the map. Just including the first bare directory seems a strange intermediate point.

View File

@ -30,4 +30,4 @@ mutiple toggles that all toggle a single togglable.
The id has a default value of "default", so can be omitted in simple cases.
If you'd like a toggleable to be displayed by default, and toggle to
hidden, then pass a parameter "open=true" when setting up the toggleable.
hidden, then pass a parameter "open=yes" when setting up the toggleable.

View File

@ -2,7 +2,7 @@ One thing I use ikiwiki for is the web pages for software projects I
maintain. Each of my projects has a news page with an announcements feed,
and to automatically update this when I release a new version, generating
an announcement from the debian/changelog and debian/NEWS files, I use a
[wikiannounce](http://git.kitenet.net/?p=joey/home;a=blob_plain;f=bin/wikiannounce)
[wikiannounce](http://git.kitenet.net/?p=joey/home.git;a=blob_plain;f=bin/wikiannounce)
program. It's somewhat specific to dealing with Debian packages, and uses a
special `announcedir` target in debian/rules, but the general idea could be
useful. --[[Joey]]

View File

@ -3,4 +3,10 @@ I'd like to be able to drop an unmodified RFC2822 email message into ikiwiki, an
> We're discussing doing just that (well, whole mailboxes, really) over in
> [[comment_by_mail]] --[[Joey]]
>> I am going to start putting something simple together. [[DavidBremner]]
>> I am going to start putting something simple together, but
>> probably not too quickly.
>> So far I don't see a way to have ikiwiki process directories
>> (i.e. maildirs or mh folders) as a single page. This not that
>> big of a deal, but it means that every mailbox will need
>> something like \[[!mailbox type=maildir path=thedir]] in some
>> "normal" (e.g. markdown) page -- [[DavidBremner]]