From 43149ef2c18e103e63efd08165dc875d6753ae01 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Tue, 27 Jul 2010 18:56:35 +0000
Subject: [PATCH] #862444 pounard: Do not name files after their enclosure
 class.

---
 CHANGELOG.txt           | 1 +
 plugins/FeedsParser.inc | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 6a04e0d8..7be2b1b1 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 fcf75f57..0423bc65 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;
       }
-- 
GitLab