diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-20 18:18:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-20 18:18:39 -0400 |
commit | 64946f91982d85bb301cc9241459939c657d0eb9 (patch) | |
tree | b61b844a4b8ec9977ce267a911bc1e8406a0dab0 /IkiWiki/Plugin/attachment.pm | |
parent | 9fc13ab196f9ac9852962365d3330020d6720b0b (diff) | |
parent | 511f7f9cb94ebdd8ea33973a0ca74d2f8249aa3f (diff) |
Merge branch 'file_pruned_revamp'
Diffstat (limited to 'IkiWiki/Plugin/attachment.pm')
-rw-r--r-- | IkiWiki/Plugin/attachment.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index ad1dd9bca..8c3ff887a 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -137,7 +137,7 @@ sub formbuilder (@) { $filename=linkpage(IkiWiki::possibly_foolish_untaint( attachment_location($form->field('page')). IkiWiki::basename($filename))); - if (IkiWiki::file_pruned($filename, $config{srcdir})) { + if (IkiWiki::file_pruned($filename)) { error(gettext("bad attachment filename")); } |