Skip to content

Commit

Permalink
Fix #3637 FILTER_SANITIZE_STRING is deprecated (PHP 8.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Sep 26, 2024
1 parent 6c3ac22 commit 6c62ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/elFinderVolumeDropbox2.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6c62ab8

Please sign in to comment.