Warning: The author of this contribution does not provide support for it anymore.

Social Login

Social Login and phpBB custom server port - Social Login

Social Login and phpBB custom server port

by rozwad » Thu Feb 28, 2019 7:24 am

Just faced an issue with OneAll extension version 4.5.2 – the redirection does not work on phpBB with a custom server port.
Below is a patch code which solves the problem (to be applied from phpBB installation directory). Hope this helps someone.

Code: Select all

Index: ext/oneall/sociallogin/core/helper.php
===================================================================
--- ext/oneall/sociallogin/core/helper.php	(version 4.5.2)
+++ ext/oneall/sociallogin/core/helper.php
@@ -353,7 +353,7 @@
         }
 
         // Remove standard ports
-        $request_port = (!in_array($request_port, array(80, 443)) ? $request_port : '');
+        $request_port = (!in_array($request_port, array(80, 443, $this->config['server_port'])) ? $request_port : '');
 
         // Build url
         $current_url = $request_protocol . '://' . $request_host . (!empty($request_port) ? (':' . $request_port) : '') . $request_uri;
PS. Apologies if this is not the right place to post this kind of observations.
rozwad
Registered User
Posts: 1
Joined: Sun Feb 24, 2019 12:21 pm