diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6a04e0d8db047bd84c7d34f4b18f47d9fc7c62e5..7be2b1b143a38aa64b79ed0b2c4f4cfb54b44254 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX -------------------------------- +- #862444 pounard: Do not name files after their enclosure class. - #851570 morningtime: Avoid trailing slashes when passing file paths to file_check_directory(). - #836090 andrewlevine, alex_b: Include mapping configuration in hash. diff --git a/plugins/FeedsParser.inc b/plugins/FeedsParser.inc index fcf75f571154b6c4b610d766600b58e7d28c4ff2..0423bc655987c0f1f7d03cb5cb5432929e80ee08 100644 --- a/plugins/FeedsParser.inc +++ b/plugins/FeedsParser.inc @@ -169,7 +169,7 @@ class FeedsEnclosure extends FeedsElement { require_once (drupal_get_path('module', 'transliteration') . '/transliteration.inc'); $filename = transliteration_clean_filename($filename); } - $dest = file_destination(file_directory_temp() .'/'. get_class($this) .'-'. $filename, FILE_EXISTS_RENAME); + $dest = file_destination(file_directory_temp() .'/'. $filename, FILE_EXISTS_RENAME); if (ini_get('allow_url_fopen')) { $this->file = copy($this->getValue(), $dest) ? $dest : 0; }