Branch: Tag:

2016-03-02

2016-03-02 15:16:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Roxen: Added decoding of surrogates to http_decode_string().

Some javascript code sends %u-encoded surrogate pairs.

10:   test_eq(_Roxen.http_decode_string(""), "")   test_eq(_Roxen.http_decode_string("+"), "+")    + test_eq(_Roxen.http_decode_string("%uD83D%uDE02"), "\U0001f602") +    // The following inputs are all illegal, but are allowed   // for compat reasons.   test_eq(_Roxen.http_decode_string("%"), "\0")