Changeset 3081
- Timestamp:
- 10/02/08 06:54:22 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/fireball/php/lib/sanitize_lib.php
r1098 r3081 38 38 $inside = preg_replace('!/?>$!', '', $inside); 39 39 $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)) { 41 41 foreach ($matches as $match) { 42 42 $attr = strtolower($match[1]); … … 55 55 $dec_val = preg_replace('/�*58(?:=;|[^0-9])/', ':', $dec_val); 56 56 $dec_val = preg_replace('/�*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)) { 58 58 $proto = $proto_match[1]; 59 59 if (preg_match('/[\r\n\t]/', $proto)) {
