]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Transmit header before creating user list
[friendica.git] / src / App.php
index 623a5b63a20a29b463bf78231394a503c07139bb..0d4e8880dd9d8373db64f8b0a60df3cd7325da83 100644 (file)
@@ -62,7 +62,7 @@ class App
 {
        const PLATFORM = 'Friendica';
        const CODENAME = 'Giant Rhubarb';
-       const VERSION  = '2022.12-dev';
+       const VERSION  = '2022.12-rc';
 
        // Allow themes to control internal parameters
        // by changing App values in theme.php
@@ -631,10 +631,10 @@ class App
 
                        // ZRL
                        if (!empty($_GET['zrl']) && $this->mode->isNormal() && !$this->mode->isBackend() && !$this->session->getLocalUserId()) {
-                               // Only continue when the given profile link seems valid
+                               // Only continue when the given profile link seems valid.
                                // Valid profile links contain a path with "/profile/" and no query parameters
                                if ((parse_url($_GET['zrl'], PHP_URL_QUERY) == '') &&
-                                       strstr(parse_url($_GET['zrl'], PHP_URL_PATH), '/profile/')) {
+                                       strpos(parse_url($_GET['zrl'], PHP_URL_PATH) ?? '', '/profile/') !== false) {
                                        if ($this->session->get('visitor_home') != $_GET['zrl']) {
                                                $this->session->set('my_url', $_GET['zrl']);
                                                $this->session->set('authenticated', 0);