Commit 7bfbed05210e8f4e3f2a3c8dc8e6e992f3789d4d

Authored by Myriam Bouchemit
1 parent 9d9e6bf5
Exists in master

modif for PHP 7

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
server/php/direct/router.php
... ... @@ -10,9 +10,10 @@ class BogusAction {
10 10  
11 11 $isForm = false;
12 12 $isUpload = false;
13   -if(isset($HTTP_RAW_POST_DATA)){
  13 +$postdata = file_get_contents("php://input");
  14 +if(isset($postdata)){
14 15 header('Content-Type: text/javascript');
15   - $data = json_decode($HTTP_RAW_POST_DATA);
  16 + $data = json_decode($postdata);
16 17 }else if(isset($_POST['extAction'])){ // form post
17 18 $isForm = true;
18 19 $isUpload = $_POST['extUpload'] == 'true';
... ...