diff --git a/plugins/FeedsParser.inc b/plugins/FeedsParser.inc index ac53bc41cb7306a10fd2c1a85c52ceb8c13030eb..23bc591a88db41e5c03b881dc87f637c9b37faef 100644 --- a/plugins/FeedsParser.inc +++ b/plugins/FeedsParser.inc @@ -349,7 +349,10 @@ class FeedsEnclosure extends FeedsElement { require_once drupal_get_path('module', 'transliteration') . '/transliteration.inc'; $filename = transliteration_clean_filename($filename); } - $file = file_save_data($this->getContent(), "$destination/$filename"); + if(file_uri_target($destination)) { + $destination .= trim($destination, '/') . '/'; + } + $file = file_save_data($this->getContent(), $destination . $filename); } // We couldn't make sense of this enclosure, throw an exception.