Rolled back SDK to not get more string issues
This commit is contained in:
@@ -2652,10 +2652,10 @@ class AppBase:
|
|||||||
# 1. Look for the to_be_replaced in the data
|
# 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
|
# 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!
|
# 3. If there are, sanitize!
|
||||||
if data.find(f'"{to_be_replaced}"') != -1 and data.find("{") != -1 and data.find("}") != -1:
|
#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.")
|
# 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)
|
# returnvalue = fix_json_string_value(value)
|
||||||
value = returnvalue
|
# value = returnvalue
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user