src/Support/Web/WebRequest.php
/**
     * Parses the given location uri into an absolute url.
     *
     * @param string $handle
     * @return string
     */
Parses the given location uri into an absolute url.
@param string $handle
@return string
Parses the given location uri into an absolute url . @param string $handle @return string
protected function parseRedirectUri($lastUri, $uri) {
        $base = parse_url($lastUri);
        if (substr($uri, 0, 2) === '//') return ($base['scheme'] . '://' . substr($uri, 2));
        if (substr($uri, 0, 1) === '/') return ($base['scheme'] . '://' . $base['host'] . $uri);
        if (substr($uri, 0, 2) === './') return ($base['scheme'] . '://' . $base['host'] . '/' . substr($uri, 2));
        if (strpos($uri, '://') === false) return ($base['scheme'] . '://' . $base['host'] . $uri);
        return $uri;
    }
protected function parseRedirectUri ( $ lastUri , $ uri ) { $ base = parse_url ( $ lastUri ) ; if ( substr ( $ uri , 0 , 2 ) === '//' ) return ( $ base [ 'scheme' ] . '://' . substr ( $ uri , 2 ) ) ; if ( substr ( $ uri , 0 , 1 ) === '/' ) return ( $ base [ 'scheme' ] . '://' . $ base [ 'host' ] . $ uri ) ; if ( substr ( $ uri , 0 , 2 ) === './' ) return ( $ base [ 'scheme' ] . '://' . $ base [ 'host' ] . '/' . substr ( $ uri , 2 ) ) ; if ( strpos ( $ uri , '://' ) === false ) return ( $ base [ 'scheme' ] . '://' . $ base [ 'host' ] . $ uri ) ; return $ uri ; }
Parses the given location uri into an absolute url.
Parses the given location uri into an absolute url .