Branch: Tag:

2000-12-11

2000-12-11 03:38:48 by Martin Nilsson <mani@lysator.liu.se>

Some formatting

Rev: server/etc/modules/Roxen.pmod:1.58

1:   /* -  * $Id: Roxen.pmod,v 1.57 2000/12/11 03:36:16 per Exp $ +  * $Id: Roxen.pmod,v 1.58 2000/12/11 03:38:48 nilsson Exp $    *    * Various helper functions.    *
51:   }       - // From the old 'http' file + // --- From the old 'http' file --------------------------------- +    mapping http_low_answer( int errno, string data )   //! Return a result mapping with the error and data specified. The   //! error is infact the status response, so '200' is HTTP Document
348:    + ([ "extra_heads":([ "Proxy-Authenticate":"basic realm=\""+realm+"\"",]),]);   }    - // From the old 'roxenlib' file +  + // --- From the old 'roxenlib' file ------------------------------- +    string extract_query(string from)   {    if(!from) return "";
883:    "&omega;": "\x3C9",   ]);    - constant replace_entities=indices( iso88591 )+indices( international )+indices( symbols )+indices( greek )+({"&lt;","&gt;","&amp;","&quot;","&apos;","&#x22;","&#34;","&#39;","&#0;"}); - constant replace_values =values( iso88591 )+values( international )+values( symbols )+values( greek )+({"<",">","&","\"","\'","\"","\"","\'","\000"}); + constant replace_entities = indices( iso88591 ) + +  indices( international ) + +  indices( symbols ) + +  indices( greek ) + +  ({"&lt;","&gt;","&amp;","&quot;","&apos;","&#x22;","&#34;","&#39;","&#0;"});    -  + constant replace_values = values( iso88591 ) + +  values( international ) + +  values( symbols ) + +  values( greek ) + +  ({"<",">","&","\"","\'","\"","\"","\'","\000"}); +    constant safe_characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"/"";   constant empty_strings = ({""})*sizeof(safe_characters);