diff --git a/fhem/CHANGED b/fhem/CHANGED index dc2d70d7b..0925b06d0 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # 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. + - bugfix: 74_Unifi: Cookies for UnifiController 5.9.4 - bugfix: 74_GardenaSmartDevice: fix uninitialized value $abilities - feature: 72_FB_CALLMONITOR: support for wildcard phonebook entries (numbers with trailing star sign) diff --git a/fhem/FHEM/74_Unifi.pm b/fhem/FHEM/74_Unifi.pm index 8fbfcb4c7..62b2ef8f4 100644 --- a/fhem/FHEM/74_Unifi.pm +++ b/fhem/FHEM/74_Unifi.pm @@ -22,6 +22,8 @@ # - feature: 74_Unifi: update VC-readings immediately when getting voucher # V 2.2.2 # - fixed: 74_Unifi: restart-typo in poe +# V 2.2.3 +# - fixed: 74_Unifi: Cookies for UnifiController 5.9.4 package main; @@ -794,7 +796,7 @@ sub Unifi_Login_Receive($) { for (split("\r\n",$param->{httpheader})) { if(/^Set-Cookie/) { s/Set-Cookie:\s(.*?);.*/Cookie: $1/; - $hash->{httpParams}->{header} .= $_.'\r\n'; + $hash->{httpParams}->{header} .= 'Cookie: '.$1.';\r\n'; } } if($hash->{httpParams}->{header} ne '') {