/** * Initialise redirect request. * * Note that the redirect URL must be an ABSOLUTE rather than relative URL. * IIS under CGI mode has a bug which will crash when redirecting to * relative URLs. * * @param string $url URL to redirect to */ function __construct($url) { $f = new T_Filter_Xhtml(); $content = '<html><head>' . '<meta http-equiv="Refresh" content="1;url=' . _transform($url, $f) . '">' . '</head><body>' . '<a href="' . _transform($url, $f) . '">Continue ›</a>' . '</body></html>'; parent::__construct(303); $this->setHeader("Location", $url); $this->setContent($content); }