upon further consideration, ignoring bad \uuXXXX escape sequences could be dangerous, remove test
This commit is contained in:
parent
867199539c
commit
5f6d7c1f01
3 changed files with 8 additions and 6 deletions
|
@ -53,6 +53,8 @@ parse_opts([json_escape|Rest], Opts) ->
|
|||
parse_opts(Rest, Opts#opts{json_escape=true});
|
||||
parse_opts([dirty_strings|Rest], Opts) ->
|
||||
parse_opts(Rest, Opts#opts{json_escape=true});
|
||||
parse_opts([ignore_bad_escapes|Rest], Opts) ->
|
||||
parse_opts(Rest, Opts#opts{ignore_bad_escapes=true});
|
||||
parse_opts(_, _) ->
|
||||
{error, badarg}.
|
||||
|
||||
|
@ -66,7 +68,8 @@ valid_flags() ->
|
|||
no_jsonp_escapes,
|
||||
comments,
|
||||
json_escape,
|
||||
dirty_strings
|
||||
dirty_strings,
|
||||
ignore_bad_escapes
|
||||
].
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue