projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* json doesn't need to escape singlequotes
[citadel.git]
/
libcitadel
/
lib
/
stringbuf.c
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index e3e1e239cf96b33afbc249530a36be461e6402bb..de57379dacb99dfc535314b3789a8ac1f5e2ccc2 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-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;