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

edited January 2007 in Vanilla 1.0 Help
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)

Comments

  • Although I know nothing on the subject, that looks like a core bug to me...
  • edited January 2007
    Yep, sure is.

    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;
  • Groovy - will this make it into 1.0.4? ;)
  • It probably will.

    It must be too early--I can't determine if that should be an && or an ||.
  • Should be, "||":
    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.
  • lol ::feels much better now that /me has had his coffee::
This discussion has been closed.