https://bugzilla.wikimedia.org/show_bug.cgi?id=47045

--- Comment #9 from Chris Steipp <[email protected]> ---
AbuseFilter stores the result of $wgRequest->getIP(), which when I look in the
db of enwiki, seems to always look like the rfc5952 format, which seems to be
what prettifyIP also gives.

For example, try: select afl_user, afl_user_text, afl_ip, afl_timestamp from
abuse_filter_log where afl_timestamp > '20130401000000' and afl_user_text !=
afl_ip and afl_user = 0 AND afl_user_text like '%:%' limit 100;


Maybe we need an rfc5952 formatter in the IP class, to handle any pieces that
prettifyIP doesn't?

The better, long term fix is to store all addresses as numbers, and then
translate the format when we display them, but I think it would be good to get
this bug fixed a little sooner than it would take to do the schema and code
changes for that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to