Commit Graph

18 Commits

Author SHA1 Message Date
nao-pon 15cc46ea27 [php] change code style to PSR-2 of all of php files 2019-01-01 21:18:39 +09:00
nao-pon 8d4b193814 fixes #2607 also js:core and php:plugin:Sanitizer 2018-08-07 21:28:20 +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 e6c48eaf94 [php:plugin:sanitizer] code clean up 2018-03-22 12:16:01 +09:00
Yves-K 1eeab401f2 [php:plugin:sanitizer] add on option callBack (#2432)
* Allow call back function or method on sanitizeFileName

sanitizeFileName is great but we can't do everytging with arrays or regular expressions...

I propose to add a callBack param on plugin config so we can use a function (or method) to fine tune the filename.

Tested on multiple production sites with success

* [php:plugin:sanitizer] pass $opts to the callBack function
2018-03-22 12:13:15 +09:00
nao-pon 7fa9f62f03 [php:plugin:Sanitizer] private to protected of function sanitizeFileName()
cf. #2261
2017-10-30 16:29:18 +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 a5ab4f8a84 [php:plugin:Sanitizer] add an option pathAllows
For to make configurable to characters allowed in path name.

c.f. #1959
2017-04-12 11:29:12 +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 1a579a0523 [plugin:Sanitizer] fix correction omission of #1310
ref. commit 0b88031f5fc24fa79b7ddee31f788dc4c1239
2016-07-06 13:57:50 +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 4d93930f94 [cmd:upload] confirm at uploading of same name file exists
fixes #468
2015-11-30 23:13:19 +09: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 fd2db95d04 [php:plugin:Sanitizer] fix folder upload 2014-01-19 20:08:13 +09:00
nao-pon e813ac906a [php:plugin:Sanitizer] fix typo (Fatal error) 2014-01-15 23:26:24 +09:00
nao-pon 670f4d217c [php:plugin:Sanitizer] "Null character" is removed by input checking
ref. @8005f9b0 [php:connector] Remove null & stripslashes applies on "magic_quotes_gpc"
2014-01-15 20:35:34 +09:00
nao-pon 058027f032 [php:plugin] add plugin Sanitizer 2014-01-15 15:00:20 +09:00