Join the Facebook Fan Page.
Started by Dr. Bunsen, July 30, 2012, 03:52:43 AM
Quote from: Arantor on July 30, 2012, 01:17:16 PMExcept that it's not part of the email templates. It's injected in during the email process - from the master settings.Sounds like your Settings.php file is unwritable, which would explain all the problems you're having...
Quote from: Arantor on July 30, 2012, 01:39:21 PMAre you using pretty URLs?
Quote from: Arantor on July 30, 2012, 01:46:20 PMSo, does the forum URL line in the database settings contain that mythical 192.168.1.20 address? (Since that's pulled from Settings.php which you've indicated is not that)
Quote from: Arantor on July 30, 2012, 01:56:13 PMYou said that the forum URL option, as screencapped above was not editable... but you never actually said what *that* said.Also, check smf_themes as well
Quote from: Arantor on July 31, 2012, 06:52:38 AMNo, that address is stored somewhere and it then gets injected into the code. SMF out of the box uses the settings in Settings.php to build the URL so if you have something reinjecting 192.168.1.20 in its place, there is something very weird going on.
Quote from: Arantor on August 02, 2012, 05:45:11 AMI still think it's wrong in the database or Settings.php file even though you're adamant it isn't. They're the only places it's used.
Quote from: Arantor on August 02, 2012, 04:20:06 PMSo the settings file is right, as per the screenshot. And it's not in any part of smf_settings or smf_themes? How EXACTLY are you checking that?
Quote from: Dr. Bunsen on August 03, 2012, 03:31:20 AMQuote from: Arantor on August 02, 2012, 04:20:06 PMSo the settings file is right, as per the screenshot. And it's not in any part of smf_settings or smf_themes? How EXACTLY are you checking that?I just do: "SELECT * FROM [table_name]" and scroll through it
Quote from: Arantor on August 03, 2012, 07:59:53 AMI'm still wondering what you've broken in the code because the core remainder code calls the main email template handler, which always substitutes $scripturl in, but $scripturl is based on $boardurl which is set in the Settings.php file.If you're using the email template editor mod, or pretty URLs, now would be the time to mention this - because I can't reproduce this even using a proxy on any site I operate.
Quote from: Arantor on August 03, 2012, 02:45:00 PMAnd as I'm telling you, there is nowhere in the core SMF where it does that.
Quote from: Arantor on August 04, 2012, 10:48:37 AMAnd yet I cannot reproduce it on any of the forums I run - even with proxies and all kinds of URL spoofing.If it used the supplied URL that would actually be a very nasty form of vulnerability - and since it's all done in the same place in the same exact code (loadEmailTemplate() in Subs-Post.php), every single email should be broken and yet it's not.