HttpUtils.pm: allow empty password (Forum #123581)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25103 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-10-22 12:00:39 +00:00
parent af91e6cd54
commit 40d0046ad9

View File

@ -337,7 +337,7 @@ HttpUtils_Connect($)
if($hash->{url} !~ /
^(http|https):\/\/ # $1: proto
(([^:\/]+):([^:\/]+)@)? # $2: auth, $3:user, $4:password
(([^:\/]+):([^:\/]*)@)? # $2: auth, $3:user, $4:password
([^:\/]+|\[[0-9a-f:]+\]) # $5: host or IPv6 address
(:\d+)? # $6: port
(\/.*)$ # $7: path