The -encode option is allowed for SetPath and SetQueryParam. It enables
percent-encoding of the last argument.
The -decode option is allowed for Path and QueryParam. It enables
percent-decoding of the values.
* NEWS: Document changes.
* doc/pound.8: Likewise.
* doc/pound.texi: Likewise.
* src/cctype.h (CCTYPE_UNRSRV): New flag.
* src/cctype.c: Implement CCTYPE_UNRSRV flag.
* src/config.c (parse_match_mode): Change calling sequence.
All uses changed.
Handle -decode, if requested.
(parse_set_query_param): Handle -encode option.
(parse_set_path): Likewise.
* src/http.c (urlencode, urldecode): New functions.
(submatch_exec_decode,expand_string_encode): New functions.
(match_cond, rewrite_op_apply): Handle percent-decoding and encoding,
if requested.
* src/pound.h (SERVICE_COND): New field: decode.
(REWRITE_OP): New field: encode.
* tests/lstset.at: New new options.
* tests/queryparam.at: Likewise.
* tests/set.at: Likewise.