Postponed (maintainer needs more info)
Project:
Track
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2009 at 14:15 UTC
Updated:
25 Jul 2009 at 14:04 UTC
The upload gpx file validation fails with IE. (IE uploads filname.gpx.txt?)
There is a ereg_replace going on in track.module:
if ($file = file_check_upload('file')) {
$ext = strtolower(ereg_replace("^.+\\.([^.]+)$", "\\1", $file->filename));
if ($ext != "gpx") {
Does this remove everything but the extension and check that it is gpx?
This check should also remove all non English letters from the filename and check if the filename contains .txt in front of .gpx or else the possessing of the gpx file fails.
Comments
Comment #1
gadzuk commentedI'm not able to reproduce this. What version of IE / Windows are you running?