diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-08-15 17:01:47 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-08-15 17:01:47 +0200 |
commit | 6d16029716ef68a7b52168a74c368147b8328284 (patch) | |
tree | 5814be3d2dbb9ae16ba499a92da08b8b068b8d11 | |
parent | configure.ac: Don't insist on Erlang/OTP >= 17.5 (diff) |
Let ejabberdctl handle more shell metacharacters
Closes #704.
-rwxr-xr-x | ejabberdctl.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index 79f443890..4704c85c4 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -405,7 +405,7 @@ ctl() ctlexec() { CONN_NAME=$1; shift - COMMAND=$(echo $@ | sed 's/;/\\;/g') + COMMAND=$(echo $@ | sed 's/["&$;\|<>()]/\\&/g') $EXEC_CMD "$ERL \ $NAME ${CONN_NAME} \ -noinput \ |