Changeset 4580 in subversion


Ignore:
Timestamp:
Feb 28, 2011 12:33:26 PM (2 years ago)
Author:
alec
Message:
  • Fix parsing links with non-printable characters inside (#1487805)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4579 r4580  
    22=========================== 
    33 
     4- Fix parsing links with non-printable characters inside (#1487805) 
    45- Force IE to send referers (#1487806) 
    56- Fixed de_CH Localization bugs (#1487773) 
  • trunk/roundcubemail/program/lib/html2text.php

    r4223 r4580  
    653653            return $this->_strtoupper("\n\n". $matches[2] ."\n\n"); 
    654654        case 'a': 
    655             return $this->_build_link_list($matches[3], $matches[4]); 
    656         } 
    657     } 
    658      
     655            // Remove spaces in URL (#1487805) 
     656            $url = str_replace(' ', '', $matches[3]); 
     657            return $this->_build_link_list($url, $matches[4]); 
     658        } 
     659    } 
     660 
    659661    /** 
    660662     *  Strtoupper multibyte wrapper function 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r4506 r4580  
    12011201  $end = '>'; 
    12021202 
     1203  // Remove non-printable characters in URL (#1487805) 
     1204  $attrib['href'] = preg_replace('/[\x00-\x1F]/', '', $attrib['href']); 
     1205 
    12031206  if ($tag == 'link' && preg_match('/^https?:\/\//i', $attrib['href'])) { 
    12041207    $tempurl = 'tmp-' . md5($attrib['href']) . '.css'; 
Note: See TracChangeset for help on using the changeset viewer.