]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Continued a bit:
[friendica.git] / boot.php
index c9d3045cad3633b0639ad7424fb7d64853eb52be..f65829ed187d3e106d65a2cfcbf366bd3561a170 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -697,12 +697,12 @@ class App {
                        $this->query_string = substr($_SERVER['QUERY_STRING'], 9);
 
                        // removing trailing / - maybe a nginx problem
-                       $this->query_string = lrim($this->query_string, '/');
+                       $this->query_string = ltrim($this->query_string, '/');
                } elseif ((x($_SERVER, 'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'], 0, 2) === "q=") {
-                       $this->query_string = substr($_SERVER['QUERY_STRING'],2);
+                       $this->query_string = substr($_SERVER['QUERY_STRING'], 2);
 
                        // removing trailing / - maybe a nginx problem
-                       $this->query_string = lrim($this->query_string, '/');
+                       $this->query_string = ltrim($this->query_string, '/');
                }
 
                if (x($_GET, 'pagename')) {
@@ -721,8 +721,8 @@ class App {
                }
 
                // Diaspora style profile url
-               if (substr($this->cmd,0,2) === 'u/') {
-                       $this->cmd = 'profile/' . substr($this->cmd,2);
+               if (substr($this->cmd, 0, 2) === 'u/') {
+                       $this->cmd = 'profile/' . substr($this->cmd, 2);
                }