Skip to content

Commit 568a215

Browse files
committed
Fixes yiisoft#861: changed CHttpRequest::redirect docs to match code
1 parent b253faa commit 568a215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/web/CHttpRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,8 @@ public function getCookies()
750750

751751
/**
752752
* Redirects the browser to the specified URL.
753-
* @param string $url URL to be redirected to. If the URL is a relative one, the base URL of
754-
* the application will be inserted at the beginning.
753+
* @param string $url URL to be redirected to. Note that when URL is not
754+
* absolute (not starting with "/") it will be relative to current request URL.
755755
* @param boolean $terminate whether to terminate the current application
756756
* @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
757757
* for details about HTTP status code.

0 commit comments

Comments
 (0)