diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-03 16:37:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-06 12:25:00 +0200 |
commit | c30da2b46b5f791281005b63e61f205d20fece13 (patch) | |
tree | 89e1851d035dcecaf4cda7e7b50f1c584939011b /scripting | |
parent | e959f4446cbba0e07c89c2be468e4ade29e7ef0c (diff) |
keep name percent-encoded
Change-Id: I470c4b24192c3e3c9b556a9bbb3b084359e0033b
Reviewed-on: https://gerrit.libreoffice.org/76892
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/pyprov/pythonscript.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py index f1b2bfc75ee3..64e1337d642e 100644 --- a/scripting/source/pyprov/pythonscript.py +++ b/scripting/source/pyprov/pythonscript.py @@ -219,7 +219,9 @@ class MyUriHelper: # path to the .py file + "$functionname, arguments, etc xStorageUri = self.m_uriRefFac.parse(scriptURI) - sStorageUri = xStorageUri.getName().replace( "|", "/" ); + # getName will apply url-decoding to the name, so encode back + sStorageUri = xStorageUri.getName().replace("%", "%25") + sStorageUri = sStorageUri.replace( "|", "/" ) # path to the .py file, relative to the base sFileUri = sStorageUri[0:sStorageUri.find("$")] |