src/Control/Director.php
protected static function validateUserAndPass($url)
    {
        $parsedURL = parse_url($url);

        // Validate user (disallow slashes)
        if (!empty($parsedURL['user']) && strstr($parsedURL['user'], '\\')) {
            return false;
        }
        if (!empty($parsedURL['pass']) && strstr($parsedURL['pass'], '\\')) {
            return false;
        }

        return true;
    }
protected static function validateUserAndPass($url)
    {
        $parsedURL = parse_url($url);

        // Validate user (disallow slashes)
        if (!empty($parsedURL['user']) && strstr($parsedURL['user'], '\\')) {
            return false;
        }
        if (!empty($parsedURL['pass']) && strstr($parsedURL['pass'], '\\')) {
            return false;
        }

        return true;
    }
protected static function validateUserAndPass ( $ url ) { $ parsedURL = parse_url ( $ url ) ; // Validate user (disallow slashes) if ( ! empty ( $ parsedURL [ 'user' ] ) && strstr ( $ parsedURL [ 'user' ] , '\\' ) ) { return false ; } if ( ! empty ( $ parsedURL [ 'pass' ] ) && strstr ( $ parsedURL [ 'pass' ] , '\\' ) ) { return false ; } return true ; }
Validate user and password in URL, disallowing slashes

@param string $url
@return bool
Validate user and password in URL disallowing slashes