Files
budget_analyser/vendor/league/flysystem/src/PathTraversalDetected.php
TiclemFR 884eb3011a 🎉
2023-12-29 16:00:02 +01:00

26 lines
482 B
PHP

<?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
class PathTraversalDetected extends RuntimeException implements FilesystemException
{
private string $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;
}
}