Skip to content

Commit c1d6541

Browse files
committed
URL_PATH regression fixed
1 parent 8a039b8 commit c1d6541

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testssl.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -2947,6 +2947,7 @@ parse_hn_port() {
29472947

29482948
URL_PATH=$(echo $1 | sed 's/.*'"${NODE}"'//' | sed 's/.*'"${PORT}"'//') # remove protocol and node part and port
29492949
URL_PATH=$(echo $URL_PATH | sed 's/\/\//\//g') # we rather want // -> /
2950+
[ -z "$URL_PATH" ] && URL_PATH="/"
29502951

29512952
# now get NODEIP
29522953
if ! get_dns_entries ; then
@@ -3422,6 +3423,6 @@ fi
34223423

34233424
exit $ret
34243425

3425-
# $Id: testssl.sh,v 1.245 2015/05/10 21:38:05 dirkw Exp $
3426+
# $Id: testssl.sh,v 1.246 2015/05/11 08:47:25 dirkw Exp $
34263427
# vim:ts=5:sw=5
34273428
# ^^^ FYI: use vim and you will see everything beautifully indented with a 5 char tab

0 commit comments

Comments
 (0)