Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Bug with email reminders when BASE_URL uses https
The forum I have set up is using SSL. When BASE_URL uses a value starting with https (ie. https://forums.example.com), the role change and password change emails have a malformed URL.
For example, when the BASE_URL is set to https://forums.example.com, the url in the password change email looks like this:
https://forums.example.com/https://forums.example.com/people.php?PostBackAction=PasswordResetForm&u=1&k=6b7119c65b1fyd7e5989227e98e7dge9
it should be:
https://forums.example.com/people.php?PostBackAction=PasswordResetForm&u=1&k=6b7119c65b1fyd7e5989227e98e7dge9
When I change the BASE_URL back to "http", the emails contain correct URL's. Any simple fix for this? (I'm running Vanilla 1.0.3)
For example, when the BASE_URL is set to https://forums.example.com, the url in the password change email looks like this:
https://forums.example.com/https://forums.example.com/people.php?PostBackAction=PasswordResetForm&u=1&k=6b7119c65b1fyd7e5989227e98e7dge9
it should be:
https://forums.example.com/people.php?PostBackAction=PasswordResetForm&u=1&k=6b7119c65b1fyd7e5989227e98e7dge9
When I change the BASE_URL back to "http", the emails contain correct URL's. Any simple fix for this? (I'm running Vanilla 1.0.3)
0
This discussion has been closed.
Comments
Go to
library/framework/functions.php
and change line 84 from:if (strpos($PathToConcatenate, 'http://') !== false) return $PathToConcatenate;
To:
if ( (strpos($PathToConcatenate, 'http://') !== false) && (strpos($PathToConcatenate, 'https://') !== false) ) return $PathToConcatenate;
It must be too early--I can't determine if that should be an
&&
or an||
.if ( (strpos($PathToConcatenate, 'http://') !== false) || (strpos($PathToConcatenate, 'https://') !== false) ) return $PathToConcatenate;
And the actual file is: library/Framework/Framework.Functions.php
Thanks for you help Dave, all is well now.