Changeset 3082 for trunk/php/lib/sanitize_lib.php
- Timestamp:
- 10/03/08 01:07:01 (14 months ago)
- Files:
-
- 1 modified
-
trunk/php/lib/sanitize_lib.php (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/php/lib/sanitize_lib.php
r1098 r3082 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)) {
