* json doesn't need to escape singlequotes
[citadel.git] / libcitadel / lib / stringbuf.c
index e3e1e239cf96b33afbc249530a36be461e6402bb..de57379dacb99dfc535314b3789a8ac1f5e2ccc2 100644 (file)
@@ -653,11 +653,6 @@ long StrECMAEscAppend(StrBuf *Target, const StrBuf *Source, const char *PlainIn)
                        memcpy(bptr, "\\\"", 2);
                        bptr += 2;
                        Target->BufUsed += 2;
-               }
-               else if (*aptr == '\'') {
-                       memcpy(bptr, "\\\'", 2);
-                       bptr += 2;
-                       Target->BufUsed += 2;
                } else if (*aptr == '\\') {
                  memcpy(bptr, "\\\\", 2);
                  bptr += 2;