php: default folder without IP

This commit is contained in:
Sergey Linnik
2016-12-07 15:13:48 +03:00
parent c319be9751
commit b52350ce75

View File

@ -135,7 +135,9 @@ function getClientIp() {
getenv('HTTP_FORWARDED_FOR')?:
getenv('HTTP_FORWARDED')?:
getenv('REMOTE_ADDR')?:
'';
'Storage';
$ipaddress = preg_replace("/[^0-9a-zA-Z.=]/", "_", $ipaddress);
return $ipaddress;
}