Changeset 29c5422 in github


Ignore:
Timestamp:
Feb 28, 2011 12:33:26 PM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
bbce3ed
Parents:
d7167e9
Message:
  • Fix parsing links with non-printable characters inside (#1487805)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rd7167e9 r29c5422  
    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) 
  • program/lib/html2text.php

    r6084d78 r29c5422  
    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 
  • program/steps/mail/func.inc

    r829cbfe8 r29c5422  
    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.