Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace League\Flysystem;
6
 
7
use RuntimeException;
8
 
9
class PathTraversalDetected extends RuntimeException implements FilesystemException
10
{
11
    private string $path;
12
 
13
    public function path(): string
14
    {
15
        return $this->path;
16
    }
17
 
18
    public static function forPath(string $path): PathTraversalDetected
19
    {
20
        $e = new PathTraversalDetected("Path traversal detected: {$path}");
21
        $e->path = $path;
22
 
23
        return $e;
24
    }
25
}