diff options
author | Michael <icarus@dabo.de> | 2012-02-20 01:53:22 +0100 |
---|---|---|
committer | Michael <icarus@dabo.de> | 2012-02-20 01:53:22 +0100 |
commit | 0fb22e1284c0510a0d009e34b7a1aa31ef6be052 (patch) | |
tree | cd3b4aa3b824587eb0b271d9a51b4311171af966 /boot.php | |
parent | b6d7777226517dc22745bc3d78b827b0175bcb16 (diff) | |
download | volse-hubzilla-0fb22e1284c0510a0d009e34b7a1aa31ef6be052.tar.gz volse-hubzilla-0fb22e1284c0510a0d009e34b7a1aa31ef6be052.tar.bz2 volse-hubzilla-0fb22e1284c0510a0d009e34b7a1aa31ef6be052.zip |
API is now working on my nginx server.
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -309,8 +309,12 @@ class App { . 'library/phpsec' . PATH_SEPARATOR . '.' ); - if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) === "q=") + if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) === "q=") { $this->query_string = substr($_SERVER['QUERY_STRING'],2); + // removing trailing / - maybe a nginx problem + if (substr($this->query_string, 0, 1) == "/") + $this->query_string = substr($this->query_string, 1); + } if(x($_GET,'q')) $this->cmd = trim($_GET['q'],'/\\'); |