Changeset 13561
- Timestamp:
- 03/02/2010 10:11:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r13382 r13561 539 539 540 540 $xhtml_slash = ''; 541 if (preg_match('%\s /\s*$%', $attr))541 if (preg_match('%\s*/\s*$%', $attr)) 542 542 $xhtml_slash = ' /'; 543 543 … … 665 665 case 2 : # attribute value, a URL after href= for instance 666 666 667 if (preg_match(' /^"([^"]*)"(\s+|$)/', $attr, $match))667 if (preg_match('%^"([^"]*)"(\s+|/?$)%', $attr, $match)) 668 668 # "value" 669 669 { … … 681 681 } 682 682 683 if (preg_match(" /^'([^']*)'(\s+|$)/", $attr, $match))683 if (preg_match("%^'([^']*)'(\s+|/?$)%", $attr, $match)) 684 684 # 'value' 685 685 { … … 697 697 } 698 698 699 if (preg_match("%^([^\s\"']+)(\s+| $)%", $attr, $match))699 if (preg_match("%^([^\s\"']+)(\s+|/?$)%", $attr, $match)) 700 700 # value 701 701 {
Note: See TracChangeset
for help on using the changeset viewer.