From 4a150dd91c25ff36e1604fedb5354033d90a2049 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 2 Sep 2013 21:34:09 +0200 Subject: sanitize uriparse output --- util/t/uriparse/parse-url | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util/t/uriparse/parse-url') diff --git a/util/t/uriparse/parse-url b/util/t/uriparse/parse-url index 153afb4a..b0c926ca 100755 --- a/util/t/uriparse/parse-url +++ b/util/t/uriparse/parse-url @@ -3,10 +3,11 @@ set -euf tempfile="`mktemp /tmp/test.XXXXXXXX`" trap "/bin/rm -f $tempfile" EXIT INT -urlparse "http://user:pass@domain.tld/path" > $tempfile +uriparse "http://user:pass@domain.tld/path" > $tempfile . $tempfile -[ $HOSTNAME == "domain.tld" ] && \ +[ $HOSTN == "domain.tld" ] && \ [ $USERNAME == "user" ] && \ [ $PASSWORD == "pass" ] && \ [ $URIPATH == "/path" ] + -- cgit v1.2.3