mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°8017 - Security - dependabot - Symfony's VarDumper vulnerable to un… (#731)
Upgrade all Symfony components to last security fix (~6.4.0)
This commit is contained in:
@@ -254,7 +254,7 @@ final class Path
|
||||
* @param string|null $extension if specified, only that extension is cut
|
||||
* off (may contain leading dot)
|
||||
*/
|
||||
public static function getFilenameWithoutExtension(string $path, string $extension = null): string
|
||||
public static function getFilenameWithoutExtension(string $path, ?string $extension = null): string
|
||||
{
|
||||
if ('' === $path) {
|
||||
return '';
|
||||
@@ -365,7 +365,7 @@ final class Path
|
||||
}
|
||||
|
||||
// Strip scheme
|
||||
if (false !== $schemeSeparatorPosition = strpos($path, '://')) {
|
||||
if (false !== ($schemeSeparatorPosition = strpos($path, '://')) && 1 !== $schemeSeparatorPosition) {
|
||||
$path = substr($path, $schemeSeparatorPosition + 3);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user