We seem to be quoting and escaping things all over the place.
->rfc1738.c has two URI escaping options
->html.c does html quoting.
->accesslog.c had 1 semi-URI escaping option for MIME headers , and I have
just added a second escaping routine for usernames.
Is there any benefit in my doing a generic escaping routine
typedef enum {
DO_URI,
UNDO_URI,
DO_HTML,
UNDO_HTML
} escape_type_t;
char * generic_escape(const char * string, escape_type_t escape_type, char
escapechars[]);
and then in globals have the common charsets?
so you can call
escapedstr=generic_escape(original,DO_URI,RFC1738_UNSAFE);
Rob
Received on Thu Nov 09 2000 - 03:02:11 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:57 MST