Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 145fd686 authored by Yannick Li's avatar Yannick Li
Browse files

Fix comments of getObject/updateObject

parent 50af1943
No related branches found
No related tags found
1 merge request!18Add (un)escape to c-service adapter
Pipeline #211385 passed
......@@ -68,8 +68,8 @@ class CServiceAdapter {
}
client.close()
crdtJson = crdtJson.removePrefix("\"").removeSuffix("\"")
crdtJson = crdtJson.replace("\\\\\\\"", "\\\\\""); // replace \\\"with \\"
crdtJson = crdtJson.replace("\\\\'", "'"); // replace \\' with \'
crdtJson = crdtJson.replace("\\\\\\\"", "\\\\\""); // replace \\\" with \\"
crdtJson = crdtJson.replace("\\\\'", "'"); // replace \\' with '
crdtJson = crdtJson.replace("\\\\n", "\\n"); // replace \\n with \n
crdtJson = crdtJson.replace("\\\\\\", "\\\\"); // replace \\\ with \\
crdtJson = crdtJson.replace("\\\"", "\""); // replace \" with "
......@@ -90,7 +90,7 @@ class CServiceAdapter {
crdtJson = crdtJson.replace("\\\"", "\\\\\""); // replace \" with \\"
crdtJson = crdtJson.replace("'", "\\\\'"); // replace ' with \\'
crdtJson = crdtJson.replace("\\n", "\\\\n"); // replace \n with \\n
crdtJson = crdtJson.replace("\"", "\\\""); // replace "with \"
crdtJson = crdtJson.replace("\"", "\\\""); // replace " with \"
client.post<String>{
url("$serviceUrl/api/update-object")
contentType(ContentType.Application.Json)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment