link to pagespec/attachment
parent
34ac95f25b
commit
4e949e8a31
|
@ -47,7 +47,13 @@ sub formbuilder_setup (@) { #{{{
|
||||||
|
|
||||||
$form->field(name => "allowed_attachments", size => 50,
|
$form->field(name => "allowed_attachments", size => 50,
|
||||||
fieldset => "admin",
|
fieldset => "admin",
|
||||||
comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")");
|
comment => "(".
|
||||||
|
htmllink("", "",
|
||||||
|
"ikiwiki/PageSpec/attachment",
|
||||||
|
noimageinline => 1,
|
||||||
|
linktext => "Enhanced PageSpec",
|
||||||
|
).")"
|
||||||
|
);
|
||||||
if (! IkiWiki::is_admin($user_name)) {
|
if (! IkiWiki::is_admin($user_name)) {
|
||||||
$form->field(name => "allowed_attachments", type => "hidden");
|
$form->field(name => "allowed_attachments", type => "hidden");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
contains html as a web page; including running any malicious javascript
|
||||||
embedded in that page.
|
embedded in that page.
|
||||||
|
|
||||||
If you enable this plugin, be sure to lock that down, by entering a
|
If you enable this plugin, be sure to lock that down, by entering an
|
||||||
[[special_PageSpec|ikiwiki/pagespec/attachment]] in the "Allowed
|
[[enhanced_PageSpec|ikiwiki/pagespec/attachment]] in the "Allowed
|
||||||
Attachments" field of the wiki admin's preferences page.
|
Attachments" field of the wiki admin's preferences page.
|
||||||
|
|
||||||
This plugin will use the [[cpan File::MimeInfo::Magic]] perl module, if
|
This plugin will use the [[cpan File::MimeInfo::Magic]] perl module, if
|
||||||
|
|
Loading…
Reference in New Issue