Make WordPress Core


Ignore:
Timestamp:
03/07/2005 08:56:47 AM (22 years ago)
Author:
matt
Message:

Cleaned up enclosures, factored out header code, fixed validation -
​http://mosquito.wordpress.org/view.php?id=963

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-functions.php

    r2389 r2416  
    147147                                        foreach($val as $enc) {
    148148                                                $enclosure = split( "\n", $enc );
    149                                                 print "<enclosure url='".trim( $enclosure[ 0 ] )."' length='".trim( $enclosure[ 1 ] )."' type='".trim( $enclosure[ 2 ] )."'/>\n";
     149                                                print "<enclosure url='".trim( htmlspecialchars($enclosure[ 0 ]) )."' length='".trim( $enclosure[ 1 ] )."' type='".trim( $enclosure[ 2 ] )."'/>\n";
    150150                                        }
    151151                                }
Note: See TracChangeset for help on using the changeset viewer.