63 Commits

Author SHA1 Message Date
nao-pon 11b5e6b82d fix(connector): refine CSRF token refresh timing and protected commands
- refresh CSRF TTL after successful open/info/protected commands
- extend token lifetime on open requests during normal navigation
- limit CSRF protection to stable write commands
- fix callback script syntax in OAuth popup handling
2026-04-21 18:11:59 +09:00
nao-pon 633e82a94b fix(connector): add CSRF token validation and refresh flow
- issue CSRF token on open init response
- send token via custom request header
- validate token for protected write commands
- refresh token TTL on info reload and valid protected requests
- return csrfReload marker on 403 to trigger background token refresh
- suppress duplicate CSRF refresh requests on the client
2026-04-21 11:32:52 +09:00
nao-pon a9d9bc81e1 [php:core] fix #3134 close file pointer before deleting temporary file on shutdown 2020-03-28 17:33:27 +09:00
nao-pon 79a838be29 [php] fix #3114 stream proxy function using the file cmd corresponds to range request 2020-02-23 18:26:37 +09:00
nao-pon 5ec24a062a [php:Connector] add a public method setHeader($value)
rel. #3106
2020-02-10 14:32:03 +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
nao-pon 896af8cb44 [php] potential bug fixes and PHPDoc fixes
fix #2810, fix #2811, fix #2812 and fix #2114
2019-01-01 20:05:30 +09:00
nao-pon a123a0a900 [API,cmd:download] fix #2525 show notification dialog until browser starts downloading 2018-06-02 18:13:23 +09:00
nao-pon 9c9c2c8fc8 [php:connector] fix problem of fpassthru() on PHP < 5.6
rel. #2446
2018-04-09 00:11:17 +09:00
nao-pon eec0778200 [php:connector] add "charset=utf-8" to "Content-Type" of HTTP responce header 2018-02-20 23:12:37 +09:00
nao-pon f546138052 [api] add an cmd editor that getway for custom contents editor 2017-11-15 00:35:26 +09:00
nao-pon 1b6c78820b [api] add optional query (int)'substitute' to command dim
The connector can return the URL of the substitute image whose size will fit in that pixel as the value of the key 'url' of the result data when the 'substitute' parameter gives with `dim` command from the client.

Add the following two options on the client side config `commandsOptions.resize` to fixes #2251.

```javascript
// File size (bytes) threshold when using the `dim` command for obtain the image size necessary to start editing
getDimThreshold : 204800,
// File size (bytes) to request to get substitute image (400px) with the `dim` command
dimSubImgSize : 307200
```
2017-10-30 16:46:19 +09:00
nao-pon 8000cefd6f [api] fix #2222 abort on the client side then notify it to the connector side 2017-09-26 16:33:45 +09:00
nao-pon 6235b3d6e5 [php:connector] remove debug code 2017-07-05 13:48:06 +09:00
nao-pon 1763b2fe2c [php:core] fix xsendfile handling in range request 2017-07-05 13:44:29 +09:00
Naoki Sawada 3f0c6065c6 [php:connector] correction of handling of a volume root option xsendfile 2017-07-05 13:22:24 +09:00
nao-pon ecf19010b8 [php:connector] tiny tune of output() 2017-07-04 23:57:53 +09:00
nao-pon d1eabcfd27 [php:connector] set time limit to 0 on file pointer passthru 2017-04-26 17:25:49 +09:00
nao-pon ab5dc6f0dc [php:connector] fix #1975 possible XSS issue on debug mode of connector 2017-04-23 12:03:04 +09:00
nao-pon 53b7f20885 [php:connector] close session more earlier in output() 2017-03-09 15:32:43 +09:00
nao-pon dfde842da1 [php:connector] add public static function elFinderConnector::outputJson($data) 2016-11-21 21:28:28 +09:00
nao-pon 99ff869e77 [core] fix #1706 configurable to limit max number of selectable items
Added an option `maxTargets` of connector main option.
2016-10-17 23:47:48 +09:00
nao-pon 4b0dea6d5f [php:core] supports to exceed the max_input_vars of PHP settings 2016-10-17 14:46:04 +09:00
nao-pon fb8a74cd51 [php,cmd:open] fix #1586 RFC7233 violation, add commandsOptions.open.method
- php:connector - range request supports on GET request only
- js - add an option `commandsOptions.open.method`
```javascript
open : {
	// HTTP method that request to the connector when item URL is not valid URL.
	// If you set to "get" will be displayed request parameter in the browser's location field
	// so if you want to conceal its parameters should be given "post".
	// Nevertheless, please specify "get" if you want to enable the partial request by HTTP Range header.
	method : 'post'
},
```
2016-08-09 13:53:14 +09:00
nao-pon f92f1be85c [php] fix CS ^ {4} to \t 2016-07-15 09:35:54 +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 f8e6773ee0 [php] check is seekable before rewind() (use elFinder::rewind()) 2016-05-02 17:23:37 +09:00
nao-pon 89cd10087b [php:connector] fix #1321 don't be trim of put contents 2016-04-12 15:38:15 +09:00
Dominik 16641a68c1 Fix PHPDoc 2016-04-06 15:02:54 +02:00
nao-pon 2443822491 [php:connector] fix#1253 can't upload on windows with magic_quotes_gpc=on 2016-03-12 18:01:08 +09:00
nao-pon e103f42721 [php:connector] correction of Content-Length HHTP header 2016-03-05 11:31:42 +09:00
nao-pon 78452f3429 [php] session handling wrapper replaceable 2016-02-28 14:15:36 +09:00
nao-pon 71f6946fe7 [php:connector] fix notice error & correction 2016-02-27 13:49:02 +09:00
nao-pon bdeb791c41 [php:connector] fix #1213 infinite loop 2016-02-11 22:50:27 +09:00
nao-pon 25918ba8e1 [php:connector] remove Content-length header if filesize unknown 2016-02-07 14:47:11 +09:00
nao-pon 8e742ac31c fix #353 it can download files/folders as an archve file 2016-01-23 22:00:02 +09:00
nao-pon 004a6a3c43 [core] bugfix of CORS with iframe upload 2015-11-07 21:03:00 +09:00
nao-pon ea190ae345 Merge branch '2.x' into 2.1 2015-09-11 16:58:29 +09:00
Rainer Rillke 259df6a2f9 Make elFinderConnector::input_filter() protected
Given that almost all methods, `elFinderConnector` provides are already protected (or public), thus is meant to be sub-classed and 'input_filter()` is useful in derived classes, too, make it protected instead of private.
2015-09-10 14:44:46 +02:00
nao-pon efa7631cec [php:core] fix Fatal error on PHP < 5.4 2015-09-08 09:41:46 +09:00
nao-pon 211185ebcb Merge branch '2.x' into 2.1 2015-09-08 09:39:56 +09:00
nao-pon 2334de1e43 [php:connector] fix#467 clear output buffer before output 2015-09-08 09:37:59 +09:00
nao-pon 063861b514 [php:core] set ignore_user_abort(false) on file download 2015-09-05 17:27:52 +09:00
nao-pon e125ff8d3b [php:core] support HTTP Range Requests on file download 2015-09-05 10:28:09 +09:00
nao-pon ef0f9dd491 [connector] $_POST and $_REQUEST pass through in input_filter() 2014-12-19 22:04:19 +09:00
nao-pon f41d4cac8a [conector] support post request with IE XDomainRequest object 2014-03-06 23:21:23 +09:00
nao-pon 8005f9b0d1 [php:connector] Remove null & stripslashes applies on "magic_quotes_gpc" 2014-01-15 20:24:35 +09:00
Troex Nevelin f6e33d96c8 remove output buffering and closing php brackets 2012-03-03 22:30:31 +02:00
Dmitry (dio) Levashov a8606b25fc fix paste command 2012-01-25 00:02:40 +04:00