WordPress.org

Make WordPress Core

Changeset 9754


Ignore:
Timestamp:
11/18/2008 08:26:00 AM (11 years ago)
Author:
markjaquith
Message:

Use clean_url() in self_link(), for 2.6.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/feed.php

    r8246 r9754  
    496496 */
    497497function self_link() {
    498     echo 'http'
    499         . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
     498    echo clean_url(
     499        'http'
     500        . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
    500501        . $_SERVER['HTTP_HOST']
    501         . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
     502        . stripslashes($_SERVER['REQUEST_URI'])
     503        );
    502504}
    503505
Note: See TracChangeset for help on using the changeset viewer.