src/Parser/Rule/FileAbstract.php
private function safePath(string $path): string
    {
        while (($newPath = \str_replace('..', '', $path)) !== $path) {
            $path = $newPath;
        }

        return $path;
    }
private function safePath(string $path): string
    {
        while (($newPath = \str_replace('..', '', $path)) !== $path) {
            $path = $newPath;
        }

        return $path;
    }
private function safePath ( string $ path ) : string { while ( ( $ newPath = \ str_replace ( '..' , '' , $ path ) ) !== $ path ) { $ path = $ newPath ; } return $ path ; }
Filter nasty strings from path

@param string $path
@return string
Filter nasty strings from path