title: Warning:preg_match error (class.upload.php)
body: <p>Verot upload class (class.upload.php v3.2) gives an eror while upload and mime check.  </p>
  
  <pre><code>if (preg_match("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", $this-&gt;file_src_mime)) {
                              $this-&gt;file_src_mime = preg_replace("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", '$1/$2', $this-&gt;file_src_mime);
                              $this-&gt;log .= '-&amp;nbsp;MIME validated as ' . $this-&gt;file_src_mime . '&lt;br /&gt;';
                          } else {
                              $this-&gt;file_src_mime = null;
  }
  </code></pre>
  
  <p>This occurs an error:</p>
  
  <blockquote>
    <p>Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 7 in class.upload.php on line 2616</p>
  </blockquote>
  
  <p>Thanks for suggestions.</p>