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

Legend:

Unmodified
Added
Removed
  • 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.