Explorar el Código

fixed, need thinking as commands can be injected in eval

ekardnam hace 5 años
padre
commit
5f7fe2ac96
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}