whitelist format

By tomkincaid

It's strange to have multiple items in a query string with the same key.

source_whitelist=ESPN&source_whitelist=Sports%20Illustrated

It should be like this instead

source_whitelist=ESPN,Sports%20Illustrated

 

Filed Under:

separators

Tom

We prefer to use multiple instances of the same parameter with different values in the query string to avoid cases where your separator (like the comma you suggested) could possibly be part of a value for that parameter. Especially in cases like source names, topics, articles URLs - it is quite possible that they contain a comma.

Also, capability to support multiple instances of same parameter name helps you design forms where you want to POST multiple values from different input boxes to same param.

Thanks for your feedback!

-- Vineet