2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

HttpUtils: use urlDecode for password in URL (Forum #76230)

git-svn-id: https://svn.fhem.de/fhem/trunk@15005 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-09-05 07:13:12 +00:00
parent f0e7143c94
commit 30c48809d5
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: HttpUtils: use urlDecode for password in URL (Forum #76230)
- bugfix: 74_GardenaSmartDevice.pm: fix little Commandref bug's - bugfix: 74_GardenaSmartDevice.pm: fix little Commandref bug's
- new: 73_GardenaSmartBridge/74_GardenaSmartDevice control your Gardena - new: 73_GardenaSmartBridge/74_GardenaSmartDevice control your Gardena
Smart Products Smart Products

View File

@ -293,7 +293,7 @@ HttpUtils_Connect($)
$hash->{hu_portSfx} = ($port =~ m/^(80|443)$/ ? "" : ":$port"); $hash->{hu_portSfx} = ($port =~ m/^(80|443)$/ ? "" : ":$port");
$hash->{path} = '/' unless defined($hash->{path}); $hash->{path} = '/' unless defined($hash->{path});
$hash->{addr} = "$hash->{protocol}://$host:$port"; $hash->{addr} = "$hash->{protocol}://$host:$port";
$hash->{auth} = "$user:$pwd" if($authstring); $hash->{auth} = urlDecode("$user:$pwd") if($authstring);
return HttpUtils_Connect2($hash) if($hash->{conn} && $hash->{keepalive}); return HttpUtils_Connect2($hash) if($hash->{conn} && $hash->{keepalive});