From: Cedric Izoard Date: Tue, 14 Jun 2016 12:51:47 +0000 (+0000) Subject: HS 2.0R2: No longer use HTTP_RAW_POST_DATA X-Git-Tag: hostap_2_6~365 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9c52e8066c5d9a2b7e55f2a48ac44ffa230c4c0;p=thirdparty%2Fhostap.git HS 2.0R2: No longer use HTTP_RAW_POST_DATA As HTTP_RAW_POST_DATA is deprecated, use php://input instead. Signed-off-by: Cedric Izoard --- diff --git a/hs20/server/www/spp.php b/hs20/server/www/spp.php index dde4434d1..002d0280f 100644 --- a/hs20/server/www/spp.php +++ b/hs20/server/www/spp.php @@ -96,7 +96,8 @@ else putenv("HS20USER"); putenv("HS20REALM=$realm"); -putenv("HS20POST=$HTTP_RAW_POST_DATA"); +$postdata = file_get_contents("php://input"); +putenv("HS20POST=$postdata"); $addr = $_SERVER["REMOTE_ADDR"]; putenv("HS20ADDR=$addr");