Matthew Rushton wrote:
Hi,
Anyone know of any uri query string encoding/decoding functions that exist to module writers. I'm about to write my own which should be simple enough just didn't want to reinvent the wheel. I couldn't find any that existed. Thanks!

One of these should do the trick:

httpd.h:AP_DECLARE(int) ap_unescape_url(char *url);
httpd.h:AP_DECLARE(int) ap_unescape_url_keep2f(char *url);
httpd.h:AP_DECLARE(char *) ap_escape_path_segment(apr_pool_t *p, const char *s); httpd.h:AP_DECLARE(char *) ap_os_escape_path(apr_pool_t *p, const char *path, int partial);
httpd.h:#define ap_escape_uri(ppool,path) ap_os_escape_path(ppool,path,1)
httpd.h:AP_DECLARE(char *) ap_escape_html(apr_pool_t *p, const char *s);

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to