summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-02 18:07:34 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-02 18:22:49 -0400
commitca6d9da279539f0a22e7e06a7b79d5709fe9c7c2 (patch)
tree55ae73944cf45bcf5eeb2436d948a91c40697356
parent2888b0355682c8dbd5bc50767210e5c0c6a700ce (diff)
link to pagespec/attachment
-rw-r--r--IkiWiki/Plugin/attachment.pm8
-rw-r--r--doc/plugins/attachment.mdwn4
2 files changed, 9 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm
index 1bcf5a2e4..3bbe27b1a 100644
--- a/IkiWiki/Plugin/attachment.pm
+++ b/IkiWiki/Plugin/attachment.pm
@@ -47,7 +47,13 @@ sub formbuilder_setup (@) { #{{{
$form->field(name => "allowed_attachments", size => 50,
fieldset => "admin",
- comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")");
+ comment => "(".
+ htmllink("", "",
+ "ikiwiki/PageSpec/attachment",
+ noimageinline => 1,
+ linktext => "Enhanced PageSpec",
+ ).")"
+ );
if (! IkiWiki::is_admin($user_name)) {
$form->field(name => "allowed_attachments", type => "hidden");
}
diff --git a/doc/plugins/attachment.mdwn b/doc/plugins/attachment.mdwn
index daadfc348..2b8343042 100644
--- a/doc/plugins/attachment.mdwn
+++ b/doc/plugins/attachment.mdwn
@@ -20,8 +20,8 @@ Bear in mind that if you let anyone upload a particular kind of file
contains html as a web page; including running any malicious javascript
embedded in that page.
-If you enable this plugin, be sure to lock that down, by entering a
-[[special_PageSpec|ikiwiki/pagespec/attachment]] in the "Allowed
+If you enable this plugin, be sure to lock that down, by entering an
+[[enhanced_PageSpec|ikiwiki/pagespec/attachment]] in the "Allowed
Attachments" field of the wiki admin's preferences page.
This plugin will use the [[cpan File::MimeInfo::Magic]] perl module, if