attachment: Use relative paths when inserting links.
parent
a71b9a1cf1
commit
b7bf566f55
|
@ -193,8 +193,10 @@ sub formbuilder (@) { #{{{
|
|||
IkiWiki::saveindex();
|
||||
}
|
||||
elsif ($form->submitted eq "Insert Links") {
|
||||
my $page=quotemeta($q->param("page"));
|
||||
my $add="";
|
||||
foreach my $f ($q->param("attachment_select")) {
|
||||
$f=~s/^$page\///;
|
||||
$add.="[[$f]]\n";
|
||||
}
|
||||
$form->field(name => 'editcontent',
|
||||
|
|
|
@ -28,6 +28,7 @@ ikiwiki (2.55) UNRELEASED; urgency=low
|
|||
* monotone: Add support for rename, delete, and also diff. (William Uther)
|
||||
* toggle: Fix incompatability between javascript and webkit.
|
||||
* bzr: Add support for rename and delete. (Jelmer Vernooij)
|
||||
* attachment: Use relative paths when inserting links.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Mon, 21 Jul 2008 11:35:46 -0400
|
||||
|
||||
|
|
Loading…
Reference in New Issue