1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2024-10-26 12:55:04 +03:00

Fixed string processing in date

This commit is contained in:
Данила Скачедубов 2024-06-28 17:51:34 +04:00
parent ea2854bec0
commit 0f4f9fbae8

View File

@ -87,6 +87,8 @@ class firefox_applier(applier_frontend):
if json_data:
it_data.data = json_data
it_data.type = 7
else:
it_data.data = clean_data_firefox(it_data.data)
#Cases when it is necessary to create nested dictionaries
if it_data.valuename != it_data.data:
parts = self.get_parts(it_data.hive_key)
@ -180,3 +182,6 @@ def dict_item_to_list(dictionary:dict) -> dict:
else:
dict_item_to_list(dictionary[key])
return dictionary
def clean_data_firefox(data):
return data.replace("'", '\"')