scripting/source/pyprov/pythonscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c79efeb66f7951305d0334bc288aee1c571a8728 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Aug 19 11:27:15 2019 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Aug 19 12:47:59 2019 +0200 Improve check for absolute URI Change-Id: I4dee44832107f72f8f3fb68554428dc1e646c346 Reviewed-on: https://gerrit.libreoffice.org/77706 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py index bd2aa3e1670e..82973266a2b0 100644 --- a/scripting/source/pyprov/pythonscript.py +++ b/scripting/source/pyprov/pythonscript.py @@ -238,7 +238,7 @@ class MyUriHelper: log.debug( message ) raise RuntimeException( message, self.ctx ) - if xFileUri.isAbsolute(): + if not xFileUri.hasRelativePath(): message = "pythonscript: an absolute uri is invalid '" + sFileUri+ "'" log.debug( message ) raise RuntimeException( message, self.ctx ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits