Changeset 42260
- Timestamp:
- 11/29/2017 03:55:03 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/feed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed.php
r42201 r42260 477 477 * @param string $html_link_tag The HTML link tag with a URI and other attributes. 478 478 */ 479 echo apply_filters( 'rss_enclosure', '<enclosure url="' . trim( htmlspecialchars( $enclosure[0] ) ) . '" length="' . trim( $enclosure[1] ) . '" type="' . $type. '" />' . "\n" );479 echo apply_filters( 'rss_enclosure', '<enclosure url="' . esc_url( trim( $enclosure[0] ) ) . '" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( $type ) . '" />' . "\n" ); 480 480 } 481 481 } … … 511 511 * @param string $html_link_tag The HTML link tag with a URI and other attributes. 512 512 */ 513 echo apply_filters( 'atom_enclosure', '<link href="' . trim( htmlspecialchars( $enclosure[0] ) ) . '" rel="enclosure" length="' . trim( $enclosure[1] ) . '" type="' . trim( $enclosure[2]) . '" />' . "\n" );513 echo apply_filters( 'atom_enclosure', '<link href="' . esc_url( trim( $enclosure[0] ) ) . '" rel="enclosure" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( trim( $enclosure[2] ) ) . '" />' . "\n" ); 514 514 } 515 515 }
Note: See TracChangeset
for help on using the changeset viewer.