Bugtracker
Guild project issue tracking and management
action_start_working.png
Shadowwolf (shadowwolf) has been working on this issue since December 03, 2011 (10:31)
star_faded.png
OPEN  Bug report #12  -  Firefox doesnt recognize downloads properly
Posted Dec 03, 2011 - updated Dec 03, 2011
action_vote_minus.png
1
Votes
action_vote_plus_faded.png
bug_report_small.png Bug report
 
Testing / QA
Assigned to
 Shadowwolf
Progress
   
Posted by
 Shadowwolf
Owned by
Not owned by anyone
Estimated time
Not estimated
Time spent
367466 hours
Category
User interface
Resolution
Not determined
Priority
Needs to be fixed
Reproducability
Always
Severity
Normal
Targetted for
icon_milestones.png Not determined



#5
Comment posted by
 Shadowwolf
Dec 03, 10:30
Firefox of old used to have a special way of handling download header traffic and so it required fancy coding to make it work properly. Firefox 7+ has gone to the way of the other browsers in handling download requests and so it was a code issue.

The following line of code was changed from:

  1. // Different browsers like different standards...
  2. if ($context['browser']['is_firefox'])
  3. header('Content-Disposition: ' . $disposition . '; filename*="UTF-8\'\'' . preg_replace('~&#(\d{3,8});~e', '$fixchar(\'$1\')', $utf8name) . '"');


To the following:

  1. // Different browsers like different standards...
  2. if ($context['browser']['is_firefox'])
  3. header('Content-Disposition: ' . $disposition . '; filename*=UTF-8\'\'' . str_replace(' ', '%20', preg_replace('~&#(\d{3,8});~e', '$fixchar(\'$1\')', $utf8name)));