mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(trunk, libT) #5150 'improper escaping of dirnames with new json' -- add one-liner fix. this also fixes the regression test added in the previous commit.
This commit is contained in:
parent
dffc6343ae
commit
7af02f7cdf
1 changed files with 1 additions and 0 deletions
|
@ -172,6 +172,7 @@ extract_string (jsonsl_t jsn, struct jsonsl_state_st * state, size_t * len)
|
|||
case 'n' : *out_it++ = '\n'; in_it+=2; unescaped = true; break;
|
||||
case 'r' : *out_it++ = '\r'; in_it+=2; unescaped = true; break;
|
||||
case 't' : *out_it++ = '\t'; in_it+=2; unescaped = true; break;
|
||||
case '/' : *out_it++ = '/' ; in_it+=2; unescaped = true; break;
|
||||
case '"' : *out_it++ = '"' ; in_it+=2; unescaped = true; break;
|
||||
case '\\': *out_it++ = '\\'; in_it+=2; unescaped = true; break;
|
||||
case 'u':
|
||||
|
|
Loading…
Reference in a new issue