Skip to content

Commit e7de13f

Browse files
author
Ben Bader
committed
Fix quote-escaping bug
1 parent 7f9300d commit e7de13f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/cpp/src/generate/t_cocoa_generator.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ string t_cocoa_generator::json_escape_function() {
402402
<< " unichar c = buffer[i];\n"
403403
<< " switch (c) {\n"
404404
<< " case '\\\\': [ms appendString: @\"\\\\\\\\\"]; break;\n"
405+
<< " case '\\\"': [ms appendString: @\"\\\\\\\"\"]; break;\n"
405406
<< " case '\\b': [ms appendString: @\"\\\\b\"]; break;\n"
406407
<< " case '\\f': [ms appendString: @\"\\\\f\"]; break;\n"
407408
<< " case '\\n': [ms appendString: @\"\\\\n\"]; break;\n"

0 commit comments

Comments
 (0)