From 6c62ab8e0b95adea2e3ebfda4101012e0c5fb5c0 Mon Sep 17 00:00:00 2001 From: nao-pon Date: Thu, 26 Sep 2024 17:54:37 +0900 Subject: [PATCH] Fix #3637 FILTER_SANITIZE_STRING is deprecated (PHP 8.1) --- php/elFinderVolumeDropbox2.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/elFinderVolumeDropbox2.class.php b/php/elFinderVolumeDropbox2.class.php index f23551710a..f00d79c8f9 100644 --- a/php/elFinderVolumeDropbox2.class.php +++ b/php/elFinderVolumeDropbox2.class.php @@ -363,7 +363,7 @@ public function netmountPrepare($options) if ($code && $state) { if (!empty($options['id'])) { // see https://github.com/kunalvarma05/dropbox-php-sdk/issues/115 - $authHelper->getPersistentDataStore()->set('state', filter_var($state, FILTER_SANITIZE_STRING)); + $authHelper->getPersistentDataStore()->set('state', htmlspecialchars($state)); $tokenObj = $authHelper->getAccessToken($code, $state, $callback); $options['tokens'] = [ 'access_token' => $tokenObj->getToken(),