aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-22 20:21:05 -0800
committerfriendica <info@friendica.com>2012-02-22 20:21:05 -0800
commit58a9c652de09817b9c5d5132de51b8690ed32d53 (patch)
tree5d02b1eabde017f00911c133d2cae999e4251198 /boot.php
parent8b2189f67fad1d35b3a74a1e333f9c21304af6c0 (diff)
parente34a648cadaf79e1749f220b9e26c52c5e295819 (diff)
downloadvolse-hubzilla-58a9c652de09817b9c5d5132de51b8690ed32d53.tar.gz
volse-hubzilla-58a9c652de09817b9c5d5132de51b8690ed32d53.tar.bz2
volse-hubzilla-58a9c652de09817b9c5d5132de51b8690ed32d53.zip
Merge pull request #45 from annando/master
New HTML to BBCode converter, changes to BBCode, nginx support, ...
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 9e40b81dc..8b78c0ee5 100755
--- a/boot.php
+++ b/boot.php
@@ -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'],'/\\');