Handle escaping of manufacturer/product strings (#18194)
This commit is contained in:
parent
ac33b7b0b3
commit
3adaf6a46a
5 changed files with 6 additions and 2 deletions
|
@ -479,7 +479,7 @@ def _config_to_json(key_type, config_value):
|
|||
return int(config_value)
|
||||
|
||||
elif key_type == 'str':
|
||||
return config_value.strip('"')
|
||||
return config_value.strip('"').replace('\\"', '"').replace('\\\\', '\\')
|
||||
|
||||
elif key_type == 'bcd_version':
|
||||
major = int(config_value[2:4])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue