Changeset a0d29e5 in github


Ignore:
Timestamp:
Jun 7, 2010 2:47:14 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
073543a
Parents:
cf39928
Message:
  • Fix RFC2397 handling in wash_style()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/washtml.php

    rb6f0405 ra0d29e5  
    156156                $this->extlinks = true; 
    157157            } 
    158             else if (preg_match('/^data:.+/i', $url)) { // RFC2397 
    159               $value .= ' url('.htmlspecialchars($url, ENT_QUOTES).')'; 
     158            else if (preg_match('/^data:.+/i', $match[2])) { // RFC2397 
     159              $value .= ' url('.htmlspecialchars($match[2], ENT_QUOTES).')'; 
    160160            } 
    161           } else if ($match[0] != 'url' && $match[0] != 'rbg') //whitelist ? 
     161          } 
     162          else if ($match[0] != 'url' && $match[0] != 'rbg') //whitelist ? 
    162163            $value .= ' ' . $match[0]; 
    163164          $str = substr($str, strlen($match[0])); 
Note: See TracChangeset for help on using the changeset viewer.