mirror of
https://github.com/saltstack/salt.git
synced 2025-04-10 14:51:40 +00:00
Add changelog
This commit is contained in:
parent
263c5e99dc
commit
3d3d6d6e22
2 changed files with 5 additions and 1 deletions
2
changelog/66992.fixed.md
Normal file
2
changelog/66992.fixed.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
Fixes an issue with the LGPO module when trying to parse ADMX/ADML files
|
||||
that have a space in the XMLNS url in the policyDefinitionsResources header.
|
|
@ -772,6 +772,8 @@ def test__encode_xmlns_url():
|
|||
Spaces in the xmlns url should be converted to %20
|
||||
"""
|
||||
line = '<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.0" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/Policysecurity intelligence">'
|
||||
result = re.sub(r'(.*)(\bxmlns(?::\w+)?)\s*=\s*"([^"]+)"(.*)', win_lgpo._encode_xmlns_url, line)
|
||||
result = re.sub(
|
||||
r'(.*)(\bxmlns(?::\w+)?)\s*=\s*"([^"]+)"(.*)', win_lgpo._encode_xmlns_url, line
|
||||
)
|
||||
expected = '<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.0" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/Policysecurity%20intelligence">'
|
||||
assert result == expected
|
||||
|
|
Loading…
Add table
Reference in a new issue