- Issue created by @Nicoc
- Status changed to Postponed: needs info
over 1 year ago 5:14pm 27 February 2023 This is just a proposition, cause i saw this solution many times with this kind of errors with PHP8.1
$path = str_replace($this->decodedChars[0], $this->decodedChars[1], rawurlencode($path ?? ''));
in fact, many lines of this have to be patched for php 8.1 .
all these lines are not compatible with PHP8.1 :
L301 if (strpos($path, '//') === 0) { L306 $path = str_replace($this->decodedChars[0], $this->decodedChars[1], rawurlencode($path)); L309 if (strpos($path, '/.') !== FALSE) { L3016 if ('/..' === substr($path, -3)) { and more...
The best way for me is to test $path before you use it.
- First commit to issue fork.