Airship\Cabin\Bridge\Landing\Proto\FileManager::determinePath PHP Method

determinePath() protected method

Don't break on bad Apache/nginx configuration (which is common)
protected determinePath ( string &$cabin ) : string
$cabin string
return string
    protected function determinePath(string &$cabin) : string
    {
        $this->httpGetParams($cabin);
        if (!\array_key_exists('dir', $_GET)) {
            return '';
        }
        if (!\is_string($_GET['dir'])) {
            return '';
        }
        return $_GET['dir'];
    }