summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/common.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index 6fa0cff3c..65ea4c897 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -497,7 +497,6 @@ function clientIP($single=false){
$cnt = count($ip);
$match = array();
for($i=0; $i<$cnt; $i++){
- $ip[$i] = preg_replace('/[^0-9\.]+/','',$ip[$i]);
if(preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/',$ip[$i],$match)) {
$ip[$i] = $match[0];
} else {