diff options
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 6f7f9ee60dd2..22b5ccc10b34 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -579,8 +579,9 @@ void SfxLokHelper::notifyWindow(const SfxViewShell* pThisView, { if (!rItem.first.isEmpty() && !rItem.second.isEmpty()) { - aPayload.append(", \"" + rItem.first + "\": \"" + - rItem.second + "\""); + auto aFirst = rItem.first.replaceAll("\"", "\\\""); + auto aSecond = rItem.second.replaceAll("\"", "\\\""); + aPayload.append(", \"" + aFirst + "\": \"" + aSecond + "\""); } } aPayload.append('}'); |