Changeset 8671
- Timestamp:
- 08/19/2008 06:43:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r8572 r8671 552 552 $mode = 0; 553 553 $attrname = ''; 554 $uris = array('xmlns', 'profile', 'href', 'src', 'cite', 'classid', 'codebase', 'data', 'usemap', 'longdesc', 'action'); 554 555 555 556 # Loop through the whole attribute list … … 596 597 # "value" 597 598 { 598 $thisval = wp_kses_bad_protocol($match[1], $allowed_protocols); 599 $thisval = $match[1]; 600 if ( in_array($attrname, $uris) ) 601 $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols); 599 602 600 603 if(FALSE === array_key_exists($attrname, $attrarr)) { … … 610 613 # 'value' 611 614 { 612 $thisval = wp_kses_bad_protocol($match[1], $allowed_protocols); 615 $thisval = $match[1]; 616 if ( in_array($attrname, $uris) ) 617 $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols); 613 618 614 619 if(FALSE === array_key_exists($attrname, $attrarr)) { … … 624 629 # value 625 630 { 626 $thisval = wp_kses_bad_protocol($match[1], $allowed_protocols); 631 $thisval = $match[1]; 632 if ( in_array($attrname, $uris) ) 633 $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols); 627 634 628 635 if(FALSE === array_key_exists($attrname, $attrarr)) {
Note: See TracChangeset
for help on using the changeset viewer.