Naoki Sawada
2a860167b8
fix: improve PHP 8 compatibility in session, cURL, and callback handling ( #3780 )
...
- replace curl_close() handling for PHP 8 CurlHandle compatibility
- refine session cookie params and read-only session behavior
- change session get() default fallback from '' to null
- improve OAuth callback window close/message fallback
- add type-safe adjustments in watermark processing
2026-04-20 10:28:31 +09:00
Naoki Sawada
69be51eea5
[security] fix #3458 filename bypass leading to RCE on Windows server ( #3470 )
...
Windows servers do not allow "." (Dots) at the end of a file name.
2022-03-10 00:05:21 +09:00
nao-pon
e1ed25b2b4
[php:plugins:Sanitizer] update example commentation
2020-03-03 16:13:03 +09:00
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
674bbb744e
[php:plugins:Watermark] repeated use of Imagick::compositeImage() may cause PHP to hang, so disable it
...
rel. #3041
2020-02-06 23:35:29 +09:00
nao-pon
a35eabc9eb
[php:plugins:AutoRotate] hide Warning error in rotate()
2020-02-02 14:18:16 +09:00
nao-pon
c2daf43318
[debugger] fix #3057 add a client option toastBackendWarn
2019-12-20 23:02:57 +09:00
nao-pon
28bb822aef
[php:plugins] tiny correction
2019-02-03 18:23:05 +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
nao-pon
759df980c0
[php:plugin] fix #2649 disable content editing plugin when saving data in OnlineConvert
2018-09-07 21:35:12 +09:00
nao-pon
db57d2bea5
[php:plugin:Watermark] fix #2621 add option ratio, position, marginX and marginY
2018-08-19 15:32:16 +09:00
nao-pon
8d4b193814
fixes #2607 also js:core and php:plugin:Sanitizer
2018-08-07 21:28:20 +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
N. Petkov
f1c59f6253
[php:plugin] add option onDropWith for plugin function iaEnabled ( #2442 )
...
* Add option onDropWith for plugin function iaEnabled
* change to tab indent
2018-03-26 23:32:46 +09:00
nao-pon
2a63106e87
[php:plugin:watermark] remove debug code
2018-03-22 23:40:30 +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
a6c516d899
[php:core] fix #2402 add an option memoryLimitGD to connector main options
...
```php
$opts = array(
// Maximum memory size to be extended during GD processing
// (0: not expanded, -1: unlimited or memory size notation)
'memoryLimitGD' => '256M',
'roots' => array(
array(
'driver' => 'LocalFileSystem',
'path' => '/path/to/files/',
'URL' => 'http://localhost/to/files/ '
)
)
);
```
2018-02-24 16:12:29 +09:00
Dr. Sassafras
435965999f
[ENH] Lossless image compression. Saved 1kb with an average of 35.7% per file, up to 67.7%. ( #2387 )
2018-02-18 18:37:52 +09:00
nao-pon
5d8eb55e2d
[php:plugin:watermark] report error message into debug tab
...
ref. #2372
2018-02-03 00:26:01 +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
6be712d34b
[php:plugin:AutoResize] update source code comments
2017-10-28 02:02:20 +09:00
nao-pon
f1e2ff1cb8
[php:plugin:watermark] add an option interlace
...
```php
'interlace' => IMG_GIF|IMG_JPG, // Set interlacebit image formats ( bit-field )
```
2017-10-27 23:50:38 +09:00
nao-pon
75302848ad
[php:plugins] fix #2198 AutoResize/AutoRotate/Watermark fail if php fileinfo module not loaded
2017-09-12 11:02:56 +09:00
nao-pon
3c3b233a6e
[VD:abstract,plugin] fix #2160 animation of apng is lost
2017-08-22 15:54:59 +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
9c26ac5e9a
[php] Refactoring variable names more friendly
...
c.f. #1983
2017-04-24 10:51:46 +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
db467184a4
[php] move /plugins/plugin.php to /elFinderPlugin.php
2016-12-15 01:14:35 +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
1a0095eff6
[php:plugin:AutoResize] fix #1746 add an option forceEffect (default:false)
...
For change quality of small images
2016-11-16 21:14:34 +09:00
nao-pon
f3c1ef2a1d
[php:plugins] fix notice error
2016-07-28 17:35:17 +09:00
Peter Dave Hello
b380f0b69b
optimize png images using zopflipng
2016-07-11 15:05:56 +08:00
nao-pon
1a579a0523
[plugin:Sanitizer] fix correction omission of #1310
...
ref. commit 0b88031f5fc24fa79b7ddee31f788dc4c1239
2016-07-06 13:57:50 +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
ace042da88
[php:plugin:AutoResize] use elFinderVolumeDriver::imageUtil()
2016-04-30 15:51:02 +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
f02e3c4cf5
[php:plugin] Add a new connector plugin "AutoRotate"
2016-04-01 17:24:57 +09:00
nao-pon
54bea258f7
[plugin:AutoResize,Watermark] fix notice error
2016-01-24 00:11:03 +09:00
nao-pon
53abae10c8
[php:plugin:AutoResize] fix #1175 and new option preserveExif
...
`preserveExif`: Preserve EXIF data (Imagick only). default is `false`
2016-01-04 23:35:00 +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