summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-08-19 11:27:15 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-08-30 22:54:02 +0200
commit7711de6a3114cd4a7172e12392c4a9a841831ad1 (patch)
tree25edc4cf9cc8ddb1339194408022dd7d1180c5e7
parent0b97c734e2f23c35a78944f1e45dbf442a89ca2e (diff)
Improve check for absolute URI
Change-Id: I4dee44832107f72f8f3fb68554428dc1e646c346 Reviewed-on: https://gerrit.libreoffice.org/77706 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit c79efeb66f7951305d0334bc288aee1c571a8728) Reviewed-on: https://gerrit.libreoffice.org/77724 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 52f7aa318722bd17c77ee5c4fa8307936e7b53af) (cherry picked from commit 5fcd72f856af758bc08a5668cf044c990f36598a)
-rwxr-xr-xscripting/source/pyprov/pythonscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index e531069e9898..2e633441c083 100755
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -235,7 +235,7 @@ class MyUriHelper:
log.debug( message )
raise RuntimeException( message )
- if xFileUri.isAbsolute():
+ if not xFileUri.hasRelativePath():
message = "pythonscript: an absolute uri is invalid '" + sFileUri+ "'"
log.debug( message )
raise RuntimeException( message )