msd Backup hinzugefügt
This commit is contained in:
28
msd/vendor/league/flysystem/src/PathTraversalDetected.php
vendored
Normal file
28
msd/vendor/league/flysystem/src/PathTraversalDetected.php
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace League\Flysystem;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class PathTraversalDetected extends RuntimeException implements FilesystemException
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $path;
|
||||
|
||||
public function path(): string
|
||||
{
|
||||
return $this->path;
|
||||
}
|
||||
|
||||
public static function forPath(string $path): PathTraversalDetected
|
||||
{
|
||||
$e = new PathTraversalDetected("Path traversal detected: {$path}");
|
||||
$e->path = $path;
|
||||
|
||||
return $e;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user