소스 검색

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}