mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 01:46:08 +00:00
HttpUtils.pm: allow empty password (Forum #123581)
git-svn-id: https://svn.fhem.de/fhem/trunk@25103 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c56c4d5d0c
commit
f4803fe350
@ -337,7 +337,7 @@ HttpUtils_Connect($)
|
|||||||
|
|
||||||
if($hash->{url} !~ /
|
if($hash->{url} !~ /
|
||||||
^(http|https):\/\/ # $1: proto
|
^(http|https):\/\/ # $1: proto
|
||||||
(([^:\/]+):([^:\/]+)@)? # $2: auth, $3:user, $4:password
|
(([^:\/]+):([^:\/]*)@)? # $2: auth, $3:user, $4:password
|
||||||
([^:\/]+|\[[0-9a-f:]+\]) # $5: host or IPv6 address
|
([^:\/]+|\[[0-9a-f:]+\]) # $5: host or IPv6 address
|
||||||
(:\d+)? # $6: port
|
(:\d+)? # $6: port
|
||||||
(\/.*)$ # $7: path
|
(\/.*)$ # $7: path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user