Start of topic | Skip to actions
DakarContribDakar compatibility module for use with plugins that need some of the infrastructure that has been established since TWiki-4.0.0 (dakar). Most notably, this is the security sandbox that eliminates the most common attack vectors to TWiki seen in the past.Detailed DocumentationTo use it in your plugin code proceed as follows.Allocate a sandbox object
my $sandbox;
unless (defined &TWiki::Sandbox::new) {
eval "use TWiki::Contrib::DakarContrib;";
$sandbox = new TWiki::Sandbox();
} else {
$sandbox = $TWiki::sharedSandbox;
}
Call an external processmy ($result, $errorCode) = $sandbox->sysCommand($cmdTemplate>, %params); Normalize a filename$fileName = TWiki::Sandbox::normalizeFilename($fileName); Installation Instructions
Contrib Info
|