From 5cdb6eb25f9ade1596e887bededc04740022c772 Mon Sep 17 00:00:00 2001 From: wuehler <> Date: Thu, 10 May 2018 14:43:22 +0000 Subject: [PATCH] 74_Unifi: fixed Cookies for UnifiController 5.9.4 git-svn-id: https://svn.fhem.de/fhem/trunk@16721 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_Unifi.pm | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 '') {