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.
Hello, there is a small bug in the swftools.module, if the filename has a query string, the swftools_get_action function will not return the good action because of the file's extension.
To correct this bug, replace in swftools.module at line 642 :
function swftools_get_action($file) {
by :
function swftools_get_action($file) {
// If query string, get it's position
if (($q = strpos($file, '?')) !== FALSE) {
$file = substr($file, 0, $q);
}
And use the stream variable in othervars when you call swf else the filename will be reset.
Comment | File | Size | Author |
---|---|---|---|
#1 | swftools-582742.patch | 741 bytes | Kars-T |
Comments
Comment #1
Kars-T CreditAttribution: Kars-T commentedResubmitting as patch.
The code is basically the same as here:
http://de3.php.net/manual/en/function.pathinfo.php#88654
I have this runnig at my flash game site > 4.000 Users a day so I believe its okay.
Please add this to the module!
Comment #2
webmasterkai CreditAttribution: webmasterkai commentedI have tested against 6.x-2.5 and 6.x-3.0-beta4
I'd like to see this added too.