diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2021-01-27 19:59:26 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2021-01-29 16:49:58 +0000 |
commit | 70cdd720405699c92abda145e356c84e0b9bad96 (patch) | |
tree | 222ec469177261b9690905e93107a27b2d086e89 /src/tests/monitor-configs/tiled-custom-resolution.xml | |
parent | c9aa43aa7a40bb0a74c9d98836599825441fc154 (diff) | |
download | mutter-70cdd720405699c92abda145e356c84e0b9bad96.tar.gz |
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
`<monitorspec>` specifically.
Closes: <https://gitlab.gnome.org/GNOME/mutter/-/issues/1011>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1685>
Diffstat (limited to 'src/tests/monitor-configs/tiled-custom-resolution.xml')
-rw-r--r-- | src/tests/monitor-configs/tiled-custom-resolution.xml | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <monitor> <monitorspec> <connector>DP-1</connector> - <vendor>MetaProduct's Inc.</vendor> + <vendor>MetaProduct's Inc.</vendor> <product>MetaMonitor</product> <serial>0x123456</serial> </monitorspec> |