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., the role change and password change emails have a malformed URL.

For example, when the BASE_URL is set to, the url in the password change email looks like this:

it should be:

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)


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

    Go to library/framework/functions.php and change line 84 from:
    if (strpos($PathToConcatenate, 'http://') !== false) return $PathToConcatenate;

    if ( (strpos($PathToConcatenate, 'http://') !== false) && (strpos($PathToConcatenate, 'https://') !== false) ) return $PathToConcatenate;
  • Options
    Groovy - will this make it into 1.0.4? ;)
  • Options
    It probably will.

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