davenovak / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Mongoose: the REQUEST_URI envrionment variable doesn't contain QUERY_STRING #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It needs to be fixed in Mongoose C sources. In the meantime you can fix it in 
PHP scripts, see below.

When launching Drupal 7 installation script this bug is causing a loop back 
from the "Choose language" step back to the "Choose profile" step. A quick fix 
for Drupal is to edit all the php scripts in the root directory (not many of 
them: authorize.php, cron.php, index.php, install.php, update.php, xmlrpc.php) 
and add this code at the top of each file:

  $_REQUEST_URI = $_SERVER["PHP_SELF"]."?".$_SERVER["QUERY_STRING"];
  putenv("REQUEST_URI=$_REQUEST_URI");
  $_SERVER["REQUEST_URI"] = $_REQUEST_URI;
  $_ENV["REQUEST_URI"] = $_REQUEST_URI;

This will fix the REQUEST_URI variable.

Original issue reported on code.google.com by czarek.t...@gmail.com on 16 May 2014 at 6:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
thank you that did the trick and drupal work fine.. also this hack will prevent 
drupal update from working.. when do you plan to fix this error on phpdesktop 
sir?
thank you

Original comment by vasileio...@gmail.com on 17 May 2014 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 9 Aug 2014 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 13 Oct 2014 at 6:48

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:39

GoogleCodeExporter commented 9 years ago
The code in comment #1 did not handle all cases properly. See the code provided 
in Issue 137 for a complete fix for mongoose environment variables.

Original comment by czarek.t...@gmail.com on 27 Oct 2014 at 7:49