Changes between Initial Version and Version 1 of Ticket #17923, comment 22
- Timestamp:
- 02/14/2014 04:26:53 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17923, comment 22
initial v1 1 I keep running into this issue, especially when trying to hardensecurity. You have to be really careful with this function if you don't want to create bad stuff.1 I keep running into this issue, especially when trying to improve code security. You have to be really careful with this function if you don't want to create bad stuff. 2 2 3 3 Maybe a better solution is to just introduce a new function, such as `add_encoded_query_arg()` that encodes and then calls `add_query_arg()`. That way we don't have to worry about passing yet another argument, especially when we would otherwise only pass 2 arguments. This also has the advantage of being able to deprecate `add_query_arg()` down the road if we so wish.