Преглед изворни кода

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}