Branch: Tag:

2005-01-24

2005-01-24 22:54:28 by Martin Nilsson <mani@lysator.liu.se>

No, \' is not part of unsafe, as declared by RFC 1738.

Rev: lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:1.51

340:   static constant url_non_corresponding = enumerate(0x21) +    enumerate(0x81,1,0x7f);   static constant url_unsafe = ({ '<', '>', '"', '#', '%', '{', '}', -  '|', '\\', '^', '~', '[', ']', '`', '\'' }); +  '|', '\\', '^', '~', '[', ']', '`' });   static constant url_reserved = ({ ';', '/', '?', ':', '@', '=', '&' });      // Encode these chars   static constant url_chars = url_non_corresponding + url_unsafe + -  url_reserved + ({ '+' }); +  url_reserved + ({ '+', '\'' });   static constant url_from = sprintf("%c", url_chars[*]);   static constant url_to = sprintf("%%%02x", url_chars[*]);