Skip to content
Snippets Groups Projects
Unverified Commit a269dd92 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #14205 from civicrm/5.14

5.14
parents 18cf2831 c7f99cf8
No related branches found
No related tags found
No related merge requests found
......@@ -363,8 +363,9 @@ function _civicrm_activity_get_handleSourceContactNameOrderBy(&$params, &$option
$sql->join(
'source_contact',
"LEFT JOIN
civicrm_activity_contact ac ON (ac.activity_id = a.id AND record_type_id = $sourceContactID )
LEFT JOIN civicrm_contact c ON c.id = ac.contact_id"
civicrm_activity_contact ac ON (ac.activity_id = a.id AND record_type_id = #sourceContactID)
LEFT JOIN civicrm_contact c ON c.id = ac.contact_id",
['sourceContactID' => $sourceContactID]
);
$sql->orderBy("c.display_name $order");
unset($options['sort'], $params['options']['sort']);
......
......@@ -14,6 +14,17 @@ Other resources for identifying changes are:
* https://github.com/civicrm/civicrm-joomla
* https://github.com/civicrm/civicrm-wordpress
## CiviCRM 5.13.2
Released May 6, 2019
- **[Synopsis](release-notes/5.13.2.md#synopsis)**
- **[Features](release-notes/5.13.2.md#features)**
- **[Bugs resolved](release-notes/5.13.2.md#bugs)**
- **[Miscellany](release-notes/5.13.2.md#misc)**
- **[Credits](release-notes/5.13.2.md#credits)**
- **[Feedback](release-notes/5.13.2.md#feedback)**
## CiviCRM 5.13.1
Released May 2, 2019
......
# CiviCRM 5.13.2
Released May 6, 2019
- **[Synopsis](#synopsis)**
- **[Bugs resolved](#bugs)**
- **[Credits](#credits)**
- **[Feedback](#feedback)**
## <a name="synopsis"></a>Synopsis
| *Does this version...?* | |
|:--------------------------------------------------------------- |:-------:|
| Fix security vulnerabilities? | no |
| Change the database schema? | no |
| Alter the API? | no |
| Require attention to configuration options? | no |
| Fix problems installing or upgrading to a previous version? | no |
| Introduce features? | no |
| **Fix bugs?** | **yes** |
## <a name="bugs"></a>Bugs resolved
- **Fix regression in sorting "Activities" tab by "source_name" ([dev/core#934](https://lab.civicrm.org/dev/core/issues/934):
[14194](https://github.com/civicrm/civicrm-core/pull/14194), [14204](https://github.com/civicrm/civicrm-core/pull/14204))**
- **Fix regression in which inbound email attachments were saved as `.unknown`" ([dev/core#940](https://lab.civicrm.org/dev/core/issues/940):
[14207](https://github.com/civicrm/civicrm-core/pull/14207)**
## <a name="credits"></a>Credits
This release was developed by the following authors and reviewers:
Wikimedia Foundation - Eileen McNaughton; CiviCRM - Tim Otten; Australian Greens - Seamus Lee;
Dave D;
## <a name="feedback"></a>Feedback
These release notes are edited by Tim Otten and Andrew Hunt. If you'd like to
provide feedback on them, please login to https://chat.civicrm.org/civicrm and
contact `@agh1`.
......@@ -23,3 +23,20 @@ index 3acadc3..06f1e71 100644
/**
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @version //autogentag//
diff --git a/src/parser/interfaces/part_parser.php b/src/parser/interfaces/part_parser.php
index a81378b..6c59e5a 100644
--- a/src/parser/interfaces/part_parser.php
+++ b/src/parser/interfaces/part_parser.php
@@ -168,7 +168,11 @@ abstract class ezcMailPartParser
break;
case 'text':
- if ( ezcMailPartParser::$parseTextAttachmentsAsFiles === true )
+ // dev/core#940 Ensure that emails are not processed as .unknown attachments by checking
+ // for Filename or name in the content-disposition and content-type headers.
+ if ( (ezcMailPartParser::$parseTextAttachmentsAsFiles === true) &&
+ (preg_match('/\s*filename="?([^;"]*);?/i', $headers['Content-Disposition']) ||
+ preg_match( '/\s*name="?([^;"]*);?/i' , $headers['Content-Type']) ) )
{
$bodyParser = new ezcMailFileParser( $mainType, $subType, $headers );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment