Branch: Tag:

2018-02-02

2018-02-02 16:01:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Roxen.get_decoder_for_client_charset: Survive 0 charset.

Return the identity function for strings (aka `+()) from
Roxen.get:decoder_for_client_charset() if called with 0.
This may happen if Roxen.get_client_charset_decoder() gets
called with an already decoded charset detection string.

Fixes [WS-142].

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.231 2008/02/15 23:37:03 mast Exp $ + // $Id$      #include <roxen.h>   #include <config.h>
2723:    "html": Parser.parse_html_entities,    "utf-8": utf8_to_string,    "utf-16": unicode_to_string, +  0: `+, // Identity function for strings.   ]);      static function(string:string) make_composite_decoder (