summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-07-07 16:00:59 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-07-07 16:00:59 +0200
commit7a980c043bf30e574a93882eb6adb03a796e2a74 (patch)
tree01a018abb46991ba7b5021150065047ffafc9e4f
parent67ff6b44e6ae91999ceed763a2fafaaa931af301 (diff)
downloadNetworkManager-7a980c043bf30e574a93882eb6adb03a796e2a74.tar.gz
contrib/rh-bkr: escape ARGV and ARGV_PROFILE
-rwxr-xr-xcontrib/rh-bkr/bkr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/rh-bkr/bkr.py b/contrib/rh-bkr/bkr.py
index c8436e8d12..5c6bb18288 100755
--- a/contrib/rh-bkr/bkr.py
+++ b/contrib/rh-bkr/bkr.py
@@ -545,8 +545,8 @@ class CmdSubmit(CmdBase):
raise Exception("--nitrate-status or --nitrate-exclude-status makes only sense with selecting nitrate tags")
self.subs['TESTS'] = ','.join(sorted(set(tests)))
- self.subs['ARGV'] = ("\"" + "\" \"".join(sys.argv) + "\"") if sys.argv else ''
- self.subs['ARGV_PROFILE'] = ("\"" + "\" \"".join(self.argv_profile) + "\"") if hasattr(self, 'argv_profile') else ''
+ self.subs['ARGV'] = ("\"" + "\" \"".join(sys.argv) + "\"").replace('"', '&quot;') if sys.argv else ''
+ self.subs['ARGV_PROFILE'] = ("\"" + "\" \"".join(self.argv_profile) + "\"").replace('"', '&quot;') if hasattr(self, 'argv_profile') else ''
for (k,v) in self.subs.iteritems():
self._print_substitution(k, v)