[imp] Mozilla Firebird requires no_filename_spaces quirk

Stephen Grier s.e.grier at qmul.ac.uk
Mon Nov 10 08:21:59 PST 2003


Hi,

Just thought I'd mention that I had to hack IMP-3.2.2 to get attachment
downloads to work with Mozilla Firebird (at least 0.6.1) where the
filename contains spaces. The patch is as follows:


# /opt/sfw/bin/gdiff -Naur Browser.php.old Browser.php
--- Browser.php.old     Wed Aug 27 19:44:14 2003
+++ Browser.php Mon Nov 10 16:18:28 2003
@@ -228,6 +228,10 @@
                     break;
                 }
  
+                if (preg_match('|Firebird/([0-9.]+)|', $this->agent,
$version)) {
+                    $this->setQuirk('no_filename_spaces');
+                }
+
             } elseif (preg_match('|Lynx/([0-9]+)|', $this->agent,
$version)) {
                 $this->setBrowser('lynx');
                 $this->setFeature('images', false);

-- 

Stephen Grier
Systems Developer
Computing Services
Queen Mary, University of London






More information about the imp mailing list