Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r9770 r8246  
    496496 */
    497497function self_link() {
    498     $host = @parse_url(get_option('home'));
    499     $host = $host['host'];
    500     echo clean_url(
    501         'http'
    502         . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
    503         . $host
    504         . stripslashes($_SERVER['REQUEST_URI'])
    505         );
     498    echo 'http'
     499        . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
     500        . $_SERVER['HTTP_HOST']
     501        . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
    506502}
    507503
Note: See TracChangeset for help on using the changeset viewer.