protected function validatePath($path)
    {
        if (empty($path)) {
            return false;
        }

        // we are always operating from root directory
        // so forbid relative paths
        if (false !== strpos($path, '..')) {
            return false;
        }

        return true;
    }
protected function validatePath($path)
    {
        if (empty($path)) {
            return false;
        }

        // we are always operating from root directory
        // so forbid relative paths
        if (false !== strpos($path, '..')) {
            return false;
        }

        return true;
    }
protected function validatePath ( $ path ) { if ( empty ( $ path ) ) { return false ; } // we are always operating from root directory // so forbid relative paths if ( false !== strpos ( $ path , '..' ) ) { return false ; } return true ; }
Validates a path

@param string $path path

@return bool
Validates a path