]> granicus.if.org Git - ejabberd/commitdiff
Allow password with ';' passed in ejabberdctl (#599)
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 17 Jun 2015 06:59:09 +0000 (08:59 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 17 Jun 2015 06:59:09 +0000 (08:59 +0200)
ejabberdctl.template

index 3b3461bbdd3268b49fc6c6af14ef2139783c0ae1..095653e1b68d2e3dfb434ac93ecd129386a2d676 100755 (executable)
@@ -405,7 +405,7 @@ ctl()
 ctlexec()
 {
     CONN_NAME=$1; shift
-    COMMAND=$@
+    COMMAND=$(echo $@ | sed 's/;/\\;/')
     $EXEC_CMD "$ERL \
       $NAME ${CONN_NAME} \
       -noinput \