Use curl for links.
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| for l in $3 ; do | ||||
| if [[ "${l}" =~ http://|https://|www\..* ]]; then | ||||
| pageTitle="$(wget --quiet -O - "$l" | sed -n -e 'H;${x;s!.*<head[^>]*>\(.*\)</head>.*!\1!;T;s!.*<title>\(.*\)</title>.*!\1!p}')" | ||||
| pageTitle="$(curl -s --connect-timeout 5 "$l" | sed -n -e 'H;${x;s!.*<head[^>]*>\(.*\)</head>.*!\1!;T;s!.*<title>\(.*\)</title>.*!\1!p}')" | ||||
|  | ||||
| # Fix up pageTitle a bit. | ||||
| pageTitle="${pageTitle//'/\'}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user