Added a note about the brokenness of http_encode_string and correctly_http_encode_url. Added http_encode_invalids that handles it somewhat more correctly (depending on what you want to do). Extended http_encode_cookie to escape control chars. Extended http_encode_url and correctly_http_encode_url to escape all reserved chars according to RFC 2396. Use http_encode_invalids instead of http_encode_string in http_redirect. This avoids double-escaping of "%" in many cases. It only breaks in cases where there's a literal "%" in the input "url", but I reckon that's very rare. http_encode_string throws an error right now in debug mode, to weed out that sucker from the sources. Rev: server/etc/modules/Roxen.pmod:1.188