[PATCH 3/3] HS 2.0R2: No longer use HTTP_RAW_POST_DATA

Cedric Izoard Cedric.Izoard at ceva-dsp.com
Tue Jun 14 05:51:47 PDT 2016


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 <cedric.izoard at ceva-dsp.com>
---

May save some time if someone tries to set-up hs20 example on recent php version

 hs20/server/www/spp.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hs20/server/www/spp.php b/hs20/server/www/spp.php
index dde4434..002d028 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");
 
-- 
2.7.4




More information about the Hostap mailing list