From: Aaron Schulz Date: Fri, 27 Apr 2007 13:03:42 +0000 (+0000) Subject: *only sanitize IPs, preserve mName X-Git-Tag: 1.31.0-rc.0~53201 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=cd4d9d6c0d84dcf8a061b85de1fa4adc42f878aa;p=lhc%2Fweb%2Fwiklou.git *only sanitize IPs, preserve mName --- diff --git a/includes/User.php b/includes/User.php index 5b840d77eb..4ecd49de5c 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1136,10 +1136,10 @@ class User { } else { $this->load(); if ( $this->mName === false ) { - $this->mName = wfGetIP(); + # Clean up IPs + $this->mName = IP::sanitizeIP( wfGetIP() ); } - # Clean up IPs - return IP::sanitizeIP($this->mName); + return $this->mName; } }