diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-06-08 11:17:32 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-06-08 11:17:32 +0200 |
commit | 8d39350677660d114502ceb48bd067c74339ece3 (patch) | |
tree | 3375a498f59b9ec33317a3eca99f48f76f769f37 /bzr.rb | |
parent | 71648b733395713000b5016e6319b5df14fdc634 (diff) |
Security bugfix: bzr.rb could be exploited
Diffstat (limited to 'bzr.rb')
-rw-r--r-- | bzr.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ class VCS end def VCS.cat revision, file - `#{BZRCMD} cat -r #{revision} #{file}` + `#{BZRCMD} cat -r #{revision.to_i} #{file}` end def VCS.history @@ -21,6 +21,6 @@ class VCS end def VCS.commit comment - `#{BZRCMD} commit -m '#{comment}'` + `#{BZRCMD} commit -m \"#{comment}\"` end end |