Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to use "/media/flash/myflash.swf?version=101" I noticed that I got a File not found error that made me believe that to identify the file extension the last letters in the link are read thus disabling a simple technique that is very useful as a cache preventing/versioning method in Flash developing.
In swftools.module in function swftools_get_action curent is (on line 646):
$path_parts = pathinfo($file);
should be:
$uri_parts = parse_url($file);
$path_parts = pathinfo($uri_parts['path']);
Comments
Comment #1
madaerodog CreditAttribution: madaerodog commentedComment #2
OneExtra CreditAttribution: OneExtra commentedThanks for pointing that out. However, your fix does not work for me. If i add url parameters to the swf, it is just not loaded (gives me the flash not found error). The url i tested was:
sites/default/files/preloader.swf?nocache=1
It only loads without the parameter.
I'd appreciate your help!