(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:
Jordan Lee 2012-11-27 23:24:37 +00:00
parent dffc6343ae
commit 7af02f7cdf
1 changed files with 1 additions and 0 deletions

View File

@ -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':