Skip to content
Permalink
Browse files

[processing] Use correct means to escape " values in GDAL commands

  • Loading branch information
nyalldawson committed Jan 8, 2021
1 parent b14dc49 commit 716e74c74a4b964c1e1d6e501353f2cac6a9ed5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/gdal/GdalUtils.py
@@ -254,7 +254,7 @@ def escapeAndJoin(strList):
if not isinstance(s, str):
s = str(s)
if s and s[0] != '-' and any(c in s for c in escChars):
escaped = '"' + s.replace('\\', '\\\\').replace('"', '\\"') \
escaped = '"' + s.replace('\\', '\\\\').replace('"', '"""') \
+ '"'
else:
escaped = s

0 comments on commit 716e74c

Please sign in to comment.
You can’t perform that action at this time.