1
0
Fork 0

Handle escaping of manufacturer/product strings (#18194)

This commit is contained in:
Ryan 2022-08-29 04:35:17 +10:00 committed by GitHub
parent ac33b7b0b3
commit 3adaf6a46a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 2 deletions

View file

@ -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])