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

madaerodog’s picture

Category: feature » bug
OneExtra’s picture

Thanks 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!