function track_validate_file

sti - May 29, 2009 - 14:15
Project:Track
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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.

#1

gadzuk - July 25, 2009 - 14:04
Status:active» postponed (maintainer needs more info)

I'm not able to reproduce this. What version of IE / Windows are you running?

 
 

Drupal is a registered trademark of Dries Buytaert.