Make sure no non-utf8 characters get through the fml module.
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| [ -f functions.sh ] && source functions.sh | ||||
|  | ||||
| fml="$(curl -Ls --connect-timeout 5 https://fmylife.com/random | grep -m1 -A1 '<a class="article-link" href="/article/.*>' | tail -1 | pandoc -f html -t plain | tr '[:space:]' ' ')" | ||||
| fml="$(curl -Ls --connect-timeout 5 https://fmylife.com/random | grep -m1 -A1 '<a class="article-link" href="/article/.*>' | tail -1 | pandoc -f html -t plain | tr '[:space:]' ' ' | tr -cd '[:print:]')" | ||||
|  | ||||
| if [[ ${#fml} -gt 10 ]]; then | ||||
|     msg "$2" "${fml}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user