Needs work
Project:
SWF Tools
Version:
6.x-2.5
Component:
SWF Tools
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 14:53 UTC
Updated:
13 May 2011 at 15:43 UTC
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 commentedComment #2
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!