mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing return value tag.
This commit is contained in:
parent
578674f0e1
commit
834c44b303
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ class CakeRequest implements ArrayAccess {
|
|||
*
|
||||
* @param boolean $safe Use safe = false when you think the user might manipulate their HTTP_CLIENT_IP
|
||||
* header. Setting $safe = false will will also look at HTTP_X_FORWARDED_FOR
|
||||
* @return void
|
||||
* @return string The client IP.
|
||||
*/
|
||||
public function clientIp($safe = true) {
|
||||
if (!$safe && env('HTTP_X_FORWARDED_FOR') != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue