25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Let ejabberdctl handle more shell metacharacters

Closes #704.
This commit is contained in:
Holger Weiss 2015-08-15 17:01:47 +02:00
parent 3efd0ebc5a
commit 6d16029716

View File

@ -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 \