AARE: escape exclamation mark

'!' is a reserved symbol and needs to be escaped in AARE.

Note: aare.py only exists in trunk, therefore this part is trunk-only.



Acked-by: Seth Arnold <seth.arnold@canonical.com> for trunk, 2.10 and 2.9 as needed.
This commit is contained in:
Christian Boltz 2016-01-20 21:52:28 +01:00
parent 5138e08372
commit 9950f71d0d

View file

@ -1073,6 +1073,7 @@ def handle_children(profile, hat, root):
detail = detail.replace('*', '\*') detail = detail.replace('*', '\*')
detail = detail.replace('{', '\{') detail = detail.replace('{', '\{')
detail = detail.replace('}', '\}') detail = detail.replace('}', '\}')
detail = detail.replace('!', '\!')
# Give Execute dialog if x access requested for something that's not a directory # Give Execute dialog if x access requested for something that's not a directory
# For directories force an 'ix' Path dialog # For directories force an 'ix' Path dialog