Class elFinderPluginSanitizer
elFinder Plugin Sanitizer Sanitizer of file-name and file-path etc. ex. binding, configure on connector options $opts = array( 'bind' => array( 'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre ls.pre' => array( 'Plugin.Sanitizer.cmdPreprocess' ), 'upload.presave paste.copyfrom' => array( 'Plugin.Sanitizer.onUpLoadPreSave' ) ), // global configure (optional) 'plugin' => array( 'Sanitizer' => array( 'enable' => true, 'targets' => array('\','/',':','','?','"','<','>','|'), // target chars 'replace' => '_', // replace to this 'callBack' => null // Or @callable sanitize function ) ), // each volume configure (optional) 'roots' => array( array( 'driver' => 'LocalFileSystem', 'path' => '/path/to/files/', 'URL' => 'http://localhost/to/files/' 'plugin' => array( 'Sanitizer' => array( 'enable' => true, 'targets' => array('\','/',':','','?','"','<','>','|'), // target chars 'replace' => '_', // replace to this 'callBack' => null // Or @callable sanitize function ) ) ) ) );
- elFinderPlugin
- elFinderPluginSanitizer
License: BSD
Author: Naoki Sawada
Located at zp-extensions/elFinder/php/plugins/Sanitizer/plugin.php
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
getCurrentOpts(),
iaEnabled()
|
$opts
|