Fixed a possible issue where an ip wasn't sanitized after database retrieval (only on save).