}
/**
+ * Sends a redirect request to the browser to the URL in this object.
+ */
+ public function redirect()
+ {
+ header('Location: ' . strval($this->setRaw(true)));
+ exit;
+ }
+
+ /**
* URL-safe base64 encoding, with trimmed '='.
*
* @param string $string String to encode.
<api>beta</api>
</stability>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
- <notes>* Add Horde_Url::unique().
+ <notes>* Add Horde_Url::redirect().
+ * Add Horde_Url::unique().
* Add support for callback function for toString conversion.
* Add support for URL anchors.
* Added Horde_Url::uriB64Encode() and Horde_Url::uriB64Decode().