Browse Source

fixed, need thinking as commands can be injected in eval

ekardnam 5 năm trước cách đây
mục cha
commit
5f7fe2ac96
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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}