cms_adminlog.ip_addr column does not support IPV6
Saving ipv6 ip addresses to the cms_adminlog database table fails:
ERROR: value too long for type character varying(20)
STATEMENT: INSERT INTO cms_adminlog (timestamp, user_id, username, item_id,
item_name, action, ip_addr) VALUES (1322770170,'1','redacted','80','Content
Item: Fundraising thermometer','Edited','2001:7b8:371:0:21d:dead:beef:cafe')
The ip_addr column should be updated to something large enough for ipv6
addresses, or be converted to a dedicated inet column on platforms that support
it (at least postgresql has this).
Also, the input data is not checked: if I can convince the webserver to report
unexpected data in the S_SERVER['REMOTE_ADDR'], CMSMS does not check whether the
data in this variable is actually what is expected, and the code fails on the
database level, while a sanitize check in the CMSMS code would be much better.