Note: This package is no longer needed for TWiki-4.0 and later.
Dakar compatibility module for use with plugins that need some of the infrastructure
that has been established since TWiki-4.0 (Dakar). Most notably, this is the security
sandbox that eliminates the most common attack vectors to TWiki seen in the past.
Detailed Documentation
To 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 process
my ($result, $errorCode) = $sandbox->sysCommand($cmdTemplate>, %params);
Normalize a filename
$fileName = TWiki::Sandbox::normalizeFilename($fileName);
Settings
- One line description:
- Set SHORTDESCRIPTION = Dakar compatibility module for Plugins that need some of the TWiki-4.0 infrastructure on Cairo codebase
- Name of the perl package
- Set STUB = TWiki::Contrib::DakarContrib
Installation Instructions
- Download the ZIP file
- Unzip it in your twiki installation directory. Content:
| File: | Description: |
data/TWiki/DakarContrib.txt | contrib topic |
lib/TWiki/Contrib/DakarContrib.pm | perl module |
Contrib Info
--
TWiki:Main/MichaelDaum
- 26 Jan 2006