Browse Source

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@ceva-dsp.com>
Cedric Izoard 8 years ago
parent
commit
a9c52e8066
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hs20/server/www/spp.php

+ 2 - 1
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");