Skip to content
Snippets Groups Projects
Commit f81bdc2d authored by git's avatar git Committed by Franz Glauber Vanderlinde
Browse files

Issue #1515204 by gnucifer: Malformed destination uri in FeedsEnclosure.

parent 49535c9b
No related branches found
No related tags found
No related merge requests found
...@@ -349,7 +349,10 @@ class FeedsEnclosure extends FeedsElement { ...@@ -349,7 +349,10 @@ class FeedsEnclosure extends FeedsElement {
require_once drupal_get_path('module', 'transliteration') . '/transliteration.inc'; require_once drupal_get_path('module', 'transliteration') . '/transliteration.inc';
$filename = transliteration_clean_filename($filename); $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. // We couldn't make sense of this enclosure, throw an exception.
......
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