Index: swftools.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/swftools/swftools.module,v retrieving revision 1.20.2.16 diff -b -U5 -r1.20.2.16 swftools.module --- swftools.module 18 Apr 2009 23:30:52 -0000 1.20.2.16 +++ swftools.module 15 Oct 2009 14:10:40 -0000 @@ -797,11 +797,12 @@ // Retrieve swftools_media_url to see if a remote path has been set $media_url = trim(variable_get('swftools_media_url', '')); // If a remote path is set simply build the appropriate path and return if ($media_url) { - return $media_url . '/' . $path; + $path = str_replace(file_directory_path(), '', $path); // adjust path if using private file storage + return $media_url . $path; } // If media checking is active, and the path is a file, check to see if it actually exists if (variable_get('swftools_check_media', TRUE) && $is_file) {