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.
Announcement extension makes crazy links
iambigred, I got your great extension up and running, but am having a problem when inserting HTML into the announcement.
I want to use this extension to plug one of my advertisers each month. So I inserted this as the Announcement Message:
<b>Gold Sponsor Alert:</b> <a href="http://www.fhedvd.com/" target="_blank">FHE on DVD: Famiy Home Easy</a>
The link LOOKS fine, but it actually directs the browser to:
http://www.mormonmomma.com/board/"http://www.fhedvd.com/"
So the link points BACK to my board and then appends the real link?
Any ideas?
0
This discussion has been closed.
Comments
If it helps any, I tracked down the culprit. The ConfigurationManager->GetSetting() function replaces all quotes with the HTML entity for double quotes (Framework.Class.ConfigurationManager.php, line 42):
return str_replace('"', '"', $this->Settings[$SettingName]);
That's the function the announcement extension is calling to get the announcement message out (default.php, line 44):
$text = $this->ConfigurationManager->GetSetting('ANNOUNCE_MESSAGE', true);
An aside: the announcment extension passes two parameters into GetSetting, but it only appears to take one.
So that's the culprit. Unfortunately I don't know enough about Vanilla to provide a solution. Right now I may just grit my teeth and go with invalid html (e.g. no quotes).