From 37a14dc0b24bbd336cdfd7a9a3fd9ef88b5d73d2 Mon Sep 17 00:00:00 2001
From: elvill <elias.villiger@uzh.ch>
Date: Fri, 26 Mar 2021 17:10:32 +0100
Subject: [PATCH] Fixes #12268: Verbesserter FormSubmitLog Page Sample Code

---
 Documentation/Debug.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/Debug.rst b/Documentation/Debug.rst
index 4c459801f..1b2efb535 100644
--- a/Documentation/Debug.rst
+++ b/Documentation/Debug.rst
@@ -262,9 +262,9 @@ The following QFQ code could be used for that purpose (put it in a QFQ PageConte
                      , '<br><b>IP Address</b>: ', l.clientIp
                      , '<br><b>User Agent</b>: ', l.userAgent
                      , '<br><b>SIP Data</b>: <div style="margin-left:20px;">'
-                     , "<script>var data = JSON.parse('", l.sipData, "'); for (var key in data) {
+                     , '<script>var data = ', l.sipData, "; for (var key in data) {
                                 document.write('<b>' + key + '</b>: ' + data[key] + '<br>'); }</script>", '</div>')
-                     , CONCAT("<script>var data = JSON.parse('", l.formData, "'); for (var key in data) {
+                     , CONCAT('<script>var data = ', l.formData, "; for (var key in data) {
                                 document.write('<b>' + key + '</b>: ' + data[key] + '<br>'); }</script>")
                 FROM FormSubmitLog AS l
                 LEFT JOIN Form AS f
-- 
GitLab