From: Aaron Schulz Date: Wed, 14 Mar 2007 15:23:52 +0000 (+0000) Subject: *Clean up IPv6 usernames to avoid title errors X-Git-Tag: 1.31.0-rc.0~53743 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=4e744eba7cc91972926710bc467a7f6906f8153f;p=lhc%2Fweb%2Fwiklou.git *Clean up IPv6 usernames to avoid title errors --- diff --git a/includes/User.php b/includes/User.php index f394ca3457..a4630b84e2 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1135,7 +1135,8 @@ class User { if ( $this->mName === false ) { $this->mName = wfGetIP(); } - return $this->mName; + # Clean up IPs + return IP::sanitizeIP($this->mName); } }