From ce029bfb32299cf30007f136686dd895fc2e94a4 Mon Sep 17 00:00:00 2001 From: Frikky Date: Mon, 27 Nov 2023 22:24:05 +0100 Subject: [PATCH] Rolled back SDK to not get more string issues --- backend/app_sdk/app_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index b7996c12..536fff21 100755 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -2652,10 +2652,10 @@ class AppBase: # 1. Look for the to_be_replaced in the data # 2. Check if there is a quote infront of it and also if there are {} in the data to validate JSON # 3. If there are, sanitize! - if data.find(f'"{to_be_replaced}"') != -1 and data.find("{") != -1 and data.find("}") != -1: - print(f"[DEBUG] Found quotes infront of and after {to_be_replaced}! This probably means it's JSON and should be sanitized.") - returnvalue = fix_json_string_value(value) - value = returnvalue + #if data.find(f'"{to_be_replaced}"') != -1 and data.find("{") != -1 and data.find("}") != -1: + # print(f"[DEBUG] Found quotes infront of and after {to_be_replaced}! This probably means it's JSON and should be sanitized.") + # returnvalue = fix_json_string_value(value) + # value = returnvalue