Changeset 3081

Show
Ignore:
Timestamp:
10/02/08 06:54:22 (14 months ago)
Author:
fumiakiy
Message:

Merge sanitize_lib.php changes to fireball main.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/fireball/php/lib/sanitize_lib.php

    r1098 r3081  
    3838                $inside = preg_replace('!/?>$!', '', $inside); 
    3939                $attrs = ''; 
    40                 if (preg_match_all('/\s*(\w+)\s*=(?:([\'"])(.*?)\2|([^\s]+))\s*/', $inside, $matches, PREG_SET_ORDER)) { 
     40                if (preg_match_all('/\s*(\w+)\s*=(?:([\'"])(.*?)\2|([^\s]+))\s*/s', $inside, $matches, PREG_SET_ORDER)) { 
    4141                    foreach ($matches as $match) { 
    4242                        $attr = strtolower($match[1]); 
     
    5555                                $dec_val = preg_replace('/&#0*58(?:=;|[^0-9])/', ':', $dec_val); 
    5656                                $dec_val = preg_replace('/&#x0*3[Aa](?:=;|[^a-fA-F0-9])/', ':', $dec_val); 
    57                                 if (preg_match('/^(.+?):/', $dec_val, $proto_match)) { 
     57                                if (preg_match('/^([\s\S]+?):/', $dec_val, $proto_match)) { 
    5858                                    $proto = $proto_match[1]; 
    5959                                    if (preg_match('/[\r\n\t]/', $proto)) {