Roxen.git / server / etc / modules / Roxen.pmod

version» Context lines:

Roxen.git/server/etc/modules/Roxen.pmod:2969:       case "http":    return http_encode_invalids (val);       case "cookie":    return http_encode_cookie (val);       case "url":    return http_encode_url (val);    +  case "-url": +  return http_decode_string (val); +     case "wml-url":    // Note: In 4.0 and earlier, this encoding was ambiguous since 8    // bit strings were %-encoded according to the ISO 8859-1 charset    // while wider strings first were UTF-8 encoded and then    // %-encoded. Although unlikely, it might be possible that the    // old ambiguous encoding is the one mandated by the WAP/WML    // standard - I haven't been able to verify it. /mast    return http_encode_url(val);       case "html":
Roxen.git/server/etc/modules/Roxen.pmod:3160:   //! URL-special chars, including @expr{%@}, are not encoded. 8-bit   //! and wider chars are encoded according to the IRI standard (RFC   //! 3987). C.f. @[Roxen.http_encode_invalids].   //!   //! @value "url"   //! Similar to the @expr{"http"@} encoding, but encodes all URI   //! reserved and excluded chars, that otherwise could have special   //! meaning; see RFC 3986. This includes @expr{:@}, @expr{/@},   //! @expr{%@}, and quote chars. C.f. @[Roxen.http_encode_url].   //! + //! @value "-url" + //! Reverse @expr{"url"@} encoding. + //!   //! @value "cookie"   //! Nonstandard HTTP-style encoding for cookie values. The Roxen   //! HTTP protocol module automatically decodes incoming cookies   //! using this encoding, so by using this for @expr{Set-Cookie@}   //! headers etc you will get back the original value in the   //! @expr{cookie@} scope. Note that @[Roxen.set_cookie] and the   //! RXML @expr{<set-cookie>@} tag already does this encoding for   //! you. C.f. @[Roxen.http_encode_cookie].   //!   //! @value "html"