Skip to content

Commit

Permalink
[mms] Send linked attachment download notification message in languag…
Browse files Browse the repository at this point in the history
…e of the sending user (Bug #12783).
  • Loading branch information
slusarz committed Oct 23, 2013
1 parent ff08362 commit 3880c56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions imp/docs/CHANGES
Expand Up @@ -4,6 +4,8 @@ v6.1.5-git

[mms] SECURITY: Fix XSS in message and search screens resulting from a
user-defined flag label (João Machado <geral@jpaulo.eu>).
[mms] Send linked attachment download notification message in language of the
sending user (Bug #12783).
[mms] Fix populating search fields when editing an advanced search query.
[mms] Trigger auto save draft in dynamic view if attachments have changed.
[mms] Improved UI for dropping attachments on dynamic compose screen.
Expand Down
9 changes: 8 additions & 1 deletion imp/lib/Compose/LinkedAttachment.php
Expand Up @@ -177,7 +177,7 @@ public function convert($ts, $file)
*/
public function sendNotification()
{
global $conf, $injector;
global $conf, $injector, $registry;

if (empty($conf['compose']['link_attachments_notify'])) {
return;
Expand All @@ -194,6 +194,13 @@ public function sendNotification()

$address_full = $identity->getDefaultFromAddress(true);

/* Load user prefs to correctly translate gettext strings. */
if (!$registry->getAuth()) {
$registry->setAuth($this->_user, array(), array(
'app' => 'imp'
));
}

$h = new Horde_Mime_Headers();
$h->addReceivedHeader(array(
'dns' => $injector->getInstance('Net_DNS2_Resolver'),
Expand Down
2 changes: 2 additions & 0 deletions imp/package.xml
Expand Up @@ -34,6 +34,7 @@
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mms] SECURITY: Fix XSS in message and search screens resulting from a user-defined flag label (João Machado &lt;geral@jpaulo.eu&gt;).
* [mms] Send linked attachment download notification message in language of the sending user (Bug #12783).
* [mms] Fix populating search fields when editing an advanced search query.
* [mms] Trigger auto save draft in dynamic view if attachments have changed.
* [mms] Improved UI for dropping attachments on dynamic compose screen.
Expand Down Expand Up @@ -3297,6 +3298,7 @@
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mms] SECURITY: Fix XSS in message and search screens resulting from a user-defined flag label (João Machado &lt;geral@jpaulo.eu&gt;).
* [mms] Send linked attachment download notification message in language of the sending user (Bug #12783).
* [mms] Fix populating search fields when editing an advanced search query.
* [mms] Trigger auto save draft in dynamic view if attachments have changed.
* [mms] Improved UI for dropping attachments on dynamic compose screen.
Expand Down

0 comments on commit 3880c56

Please sign in to comment.