浏览代码

fixed, need thinking as commands can be injected in eval

ekardnam 5 年之前
父节点
当前提交
5f7fe2ac96
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      megafono_bot.sh

+ 1 - 1
megafono_bot.sh

@@ -20,7 +20,7 @@ do
 	# after the while loop
 	while read line 
 	do
-		./toot.sh $line
+		eval ./toot.sh $line
 		sleep ${SLEEP_INTERVAL}
 	done < ${DATA_FILE}