(bug maybe) after steam login it redirects and i get Tried to redirect to potentially insecure URL

Hello
i installed the add on for phpbb and everything is install and set up however once im done with login to steam i get redirected and get this error. tried a few things with no luck and after hours of googling still didn't help.
Tried to redirect to potentially insecure url.

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/functions.php
LINE: 2362
CALL: trigger_error()

FILE: [ROOT]/ext/oneall/sociallogin/acp/sociallogin_acp_module.php
LINE: 2335
CALL: redirect()

FILE: [ROOT]/ext/oneall/sociallogin/acp/sociallogin_acp_module.php
LINE: 2088
CALL: oneall\sociallogin\acp\sociallogin_acp_module->social_login_redirect()

FILE: [ROOT]/ext/oneall/sociallogin/acp/sociallogin_acp_module.php
LINE: 1904
CALL: oneall\sociallogin\acp\sociallogin_acp_module->social_login_handle_callback()

FILE: [ROOT]/ext/oneall/sociallogin/event/listener.php
LINE: 256
CALL: oneall\sociallogin\acp\sociallogin_acp_module->handle_callback()

FILE: [ROOT]/ext/oneall/sociallogin/event/listener.php
LINE: 161
CALL: oneall\sociallogin\event\listener->check_callback()

FILE: (not given by php)
LINE: (not given by php)
CALL: oneall\sociallogin\event\listener->setup()

FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 158
CALL: call_user_func()

FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()

FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()

FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()

FILE: [ROOT]/includes/functions.php
LINE: 5308
CALL: phpbb\event\dispatcher->trigger_event()

FILE: [ROOT]/index.php
LINE: 234
CALL: page_header()

Best Answer

  • Fred_PinelFred_PinelMember
    Answer ✓
    Hi,
    Could you try the following edit?
    In FILE: [ROOT]/ext/oneall/sociallogin/acp/sociallogin_acp_module.php, LINE: 2335,
    replace: redirect (append_sid (self::get_current_url ()));
    with: redirect (append_sid (self::get_current_url ()), false, true);

    Regards.

Answers

  • Hi,
    First, thanks for the detailed information!
    Not sure this is a problem. PhpBB performs a check on redirections, to see if the redirect url is a full URL, and triggers this error message when it is, which the case here.
    Usually, this does not create any problems.
    But, there seems to be an error handler in your PhpBB that displays this message.
    Do you have configured some specific error handler?

    Regards
  • I didn't set any error handlers up i left them all default. I only get the error when using the mod. Do you think its due to being redirected from steams https to my forums http?
  • You are a beast man that fixed it thanks.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.