From 70cdd720405699c92abda145e356c84e0b9bad96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BChlbacher?= Date: Wed, 27 Jan 2021 19:59:26 +0100 Subject: monitor-config-store: Properly escape monitor spec Makes sure that monitor specs which may be read from EDID data do not contain characters that are invalid in XML. Makes it possible to restore monitor configs of monitor models with characters such as '&' in them. To make this change not break any tests, the sample monitor configs need to be adjusted as well. Apostrophes don't strictly have to be escaped in XML text elements. However, we now do escape the elements in `` specifically. Closes: Part-of: --- src/tests/monitor-configs/tiled-custom-resolution.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/monitor-configs/tiled-custom-resolution.xml') diff --git a/src/tests/monitor-configs/tiled-custom-resolution.xml b/src/tests/monitor-configs/tiled-custom-resolution.xml index b51c3b6f6..85939dd1f 100644 --- a/src/tests/monitor-configs/tiled-custom-resolution.xml +++ b/src/tests/monitor-configs/tiled-custom-resolution.xml @@ -8,7 +8,7 @@ DP-1 - MetaProduct's Inc. + MetaProduct's Inc. MetaMonitor 0x123456 -- cgit v1.2.1