We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4df8d7a commit 7a7fd27Copy full SHA for 7a7fd27
1 file changed
setup/bindir/cloud-setup-databases.in
@@ -26,6 +26,7 @@ import string
26
from optparse import OptionParser
27
import subprocess
28
import shutil
29
+import shlex
30
import socket
31
32
# squelch mysqldb spurious warnings
@@ -399,7 +400,7 @@ for example:
399
400
return 'ENC(%s)'%value
401
402
def encryptDBSecretKey():
- self.putDbProperty('db.cloud.encrypt.secret', formatEncryptResult(encrypt(self.dbsecretkey)))
403
+ self.putDbProperty('db.cloud.encrypt.secret', formatEncryptResult(encrypt(shlex.quote(self.dbsecretkey))))
404
405
def encryptDBPassword():
406
dbPassword = self.getDbProperty('db.cloud.password')
0 commit comments