24 Commits

Author SHA1 Message Date
nao-pon 08300ac5f1 [php:core] fix #3120 allow plugins (Sanitizer etc) to be applied when pasting from another volume 2020-03-03 15:38:01 +09:00
nao-pon 100d6a6abc [php:plugins:Normalizer] support "caron" with option "umlauts" 2020-02-19 23:29:51 +09:00
nao-pon c2daf43318 [debugger] fix #3057 add a client option toastBackendWarn 2019-12-20 23:02:57 +09:00
nao-pon 15cc46ea27 [php] change code style to PSR-2 of all of php files 2019-01-01 21:18:39 +09:00
werewolf8904 8c5fab56f3 Fix hash@undefined on select folder upload (#2607)
* Fix hash@undefined on select folder upload

When upload using 'Select folder' and Normalizer plugin enabling.
On command "mkdir"  preprocessing-folder names ($args['dirs']) passed without starting slashes-"folder/subfolder"
but on postprocess -$result['hashes'] has keys with start slashes - "/folder/subfolder"
because of this Normalizer function cant obtain keys from replaced array

* fix in cmdPreprocess() instead cmdPostprocess()
2018-08-07 21:21:10 +09:00
nao-pon fee065a187 [php:plugin:Normalizer] remove debug code 2018-06-13 16:54:55 +09:00
nao-pon b41dbb28e0 [php:plugin:Normalizer] private function normalize() 2018-06-12 17:43:31 +09:00
nao-pon 03c7278ad2 [php:plugin] fix #2532 perform folder name filtering on folder upload 2018-06-05 23:13:00 +09:00
nao-pon 9cbaa665b6 [php:plugins] bind callback argument strictly 2018-05-10 01:30:03 +09:00
nao-pon f98b555a87 [plugin:normalizer] fix #2004 add an option umlauts
Added an option to the Normalizer plugin that convert umlauts with their closest 7 bit ascii equivalent.
2017-05-15 23:09:58 +09:00
nao-pon c747a1b1c3 [php:plugin:Normalizer,Sanitizer] fix #1983 upload fails due to unnecessary conversion 2017-04-24 10:52:28 +09:00
nao-pon 75a14f6a36 [php:plugin] fix #1807 enable/disable plugin by pressing meta key on DnD upload 2016-12-15 00:24:48 +09:00
nao-pon e88048a205 [php] add PHP error handler and remove @ error-control operator 2016-05-13 17:13:31 +09:00
nao-pon 4210b88031 [plugin:Normalizer,Sanitizer] fix #1310 support duplicate check by cmd:ls 2016-04-05 18:32:56 +09:00
nao-pon 6407c4f9a9 [plugin:Normalizer] order change of filter, strtolower moved to end
And use `mb_strtolower` if it exists.

ref. #1307
2016-04-04 21:23:58 +09:00
nao-pon 171f5c6eb5 [plugin:Normalizer] add option (array) convmap
example
```php
'plugin' => array(
	'Normalizer' => array(
		'convmap' => array(
			' ' => '_',
			'ä' => 'a',
			'ả' => 'a',
			'ê' => 'e',
			'ề' => 'e',
			'ì' => 'i',
			'ö' => 'o',
			'ơ' => 'o',
			'ư' => 'u'
		)
	)
)
```
2015-12-25 16:07:08 +09:00
nao-pon aa58030bf7 [php] fix #1162 to set false to second param of class_exists() 2015-12-11 21:57:14 +09:00
nao-pon 4d93930f94 [cmd:upload] confirm at uploading of same name file exists
fixes #468
2015-11-30 23:13:19 +09:00
nao-pon 33953b49d3 [plugin:normalizer] optimization of main process 2015-11-21 23:02:31 +09:00
Erwin aad06d0aa9 Uploading NewDir/NewFile.JPG with chrome
Uploading NewDir/NewFile.JPG with chrome (Chrome is possible folder upload)
Both $name and $path will be made lowercase.
2015-11-20 08:35:45 +01:00
Erwin 75e327039f Plugin Normalizer option: make filename lowercase
I prefer making de filename lowercase always. I propose a pull request to have it build in the plugin code in that way, that the user can decide tot turn the option on or off.
Default: off.
2015-11-20 00:46:58 +01:00
nao-pon ebe70baac2 named archiving, extract to new folder or cwd
see #1029 Archive name on creation & Extract in other directory
2015-06-12 20:49:10 +09:00
nao-pon 493b362afb [php:plugin] edit class comment of Normalizer 2014-01-15 14:56:11 +09:00
nao-pon d983672311 [coonector] add new plugin "Normalizer"
elFinder Plugin Normalizer

UTF-8 Normalizer of file-name and file-path etc.
nfc(NFC): Canonical Decomposition followed by Canonical Composition
nfkc(NFKC): Compatibility Decomposition followed by Canonical

This plugin require Class "Normalizer" (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
or PEAR package "I18N_UnicodeNormalizer"

ex. binding, configure on connector options

```php
$opts = array(
	'bind' => array(
		'mkdir.pre mkfile.pre rename.pre' => 'Plugin.Normalizer.cmdPreprocess',
		'upload.presave' => array(
			'Plugin.Normalizer.onUpLoadPreSave'
		)
	),
	// global configure (optional)
	'plugin' => array(
		'Normalizer' = array(
			'enable' => true,
			'nfc'    => true,
			'nfkc'   => true
		)
	),
	// each volume configure (optional)
	'roots' => array(
		array(
			'driver' => 'LocalFileSystem',
			'path'   => '/path/to/files/',
			'URL'    => 'http://localhost/to/files/'
			'plugin' => array(
				'Normalizer' = array(
					'enable' => true,
					'nfc'    => true,
					'nfkc'   => true
				)
			)
		)
	)
);
```
2013-07-18 22:51:43 +09:00