Fixes #7978, replaces #8050
Problems: - Excluded User Agents is a comma-separated list, but user agents can contain commas - we want to let users wrap user agents in quotes (see https://github.com/piwik/piwik/issues/7978#issuecomment-121509999) which is currently not supported - the inline help for Excluded User Agents doesn't say how to format user agent strings (#7978) - other fields in the page ask for one item per line: - it's not consistent with Excluded User Agents (which is comma-separated), so it's confusing - in the code it's actually comma-separated, so it's clearly misleading and broken for some users
These problems apply to global and site-specific settings.
Goals: - [x] consistent formatting for all fields (and both global and site-specific settings) - [x] excluded user agents - [x] excluded query parameters - [x] excluded IPs - [x] it needs to be "one per line" because of user agents (that can contain commas) - [x] enclosing quotes need to be accepted (and trimmed) for user agents - [x] field helps need to match the actual behavior - [x] migration script - [x] tests - [x] update changelog regarding API changes
- enclosing quotes for user agents are trimmed (for the other fields I didn't think it would make sense)
- the help text for user agents has also been updated (only the english version), it now explicitly says that user agents should be separated by new lines. What is the best course of action to ensure translations are updated? New translation key?
- The following API methods are now returning an array of strings instead of a list encoded in CSV:
- The following API methods now accept values separated by new lines instead of commas:
Replaced by #8482