MyBB Community Forums

Full Version: Login Troubles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm working with a forum that is currently offline using EasyPHP to emulate a server locally, so unfortunately any support will have to be done remotely. It is running myBB v1.8.10, freshly upgraded from myBB v1.8.8.

I'm having an issue where upon login, the user is redirected to http://127.0.0.1/forum/http://127.0.0.1/forum/index.php rather than the intended URL of http://127.0.0.1/forum/index.php, throwing up an "access forbidden!" error.

This has happened with both custom skins and the default myBB skin, and did not happen when I switched the forum to another database for a short time, so I have a feeling that it may be related to something in the forum's stored settings. Unfortunately, looking through the settings accessible from the frontend I have no idea what might be causing it.

Does anyone know what might be going wrong?
It's a bug occurring when no valid public domain/address is used - just pushed to GH: https://github.com/mybb/mybb/issues/2693
@doylecc: So it does. I'm glad to hear the myBB team is aware of the problem and working on it, though personally I'd suggest one syntax adjustment: the fix at Line 969 in ./inc/functions.php should probably actually be...

if(! my_validate_url ( $url , true ) && my_strpos ( $url , 'http://localhost' || 'http://127.0.0.1/' ) === false )

... so that it covers both aliases for the localhost.

Just the same, thanks for your help~!
@starwingcorona - thx for your fix, I just pushed the PR