Skip to:
Content

bbPress.org

Changeset 6793


Ignore:
Timestamp:
04/04/2018 04:57:31 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Feeds: use esc_url_raw() in topics & replies generator URLs.

This brings generator tag handling up to par with recent WordPress changes.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r6791 r6793  
    20922092    <channel>
    20932093
    2094         <title><?php echo $title; ?></title>
     2094        <title><?php echo $title; // Already escaped ?></title>
    20952095        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    20962096        <link><?php self_link(); ?></link>
    20972097        <description><?php //?></description>
    20982098        <lastBuildDate><?php echo date( 'r' ); ?></lastBuildDate>
    2099         <generator>https://bbpress.org/?v=<?php bbp_version(); ?></generator>
     2099        <generator><?php echo esc_url_raw( 'https://bbpress.org/?v=' . convert_chars( bbp_get_version() ) ) ?></generator>
    21002100        <language><?php bloginfo_rss( 'language' ); ?></language>
    21012101
  • trunk/src/includes/topics/functions.php

    r6791 r6793  
    36973697    <channel>
    36983698
    3699         <title><?php echo $title; ?></title>
     3699        <title><?php echo $title; // Already escaped ?></title>
    37003700        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    37013701        <link><?php self_link(); ?></link>
    37023702        <description><?php //?></description>
    37033703        <lastBuildDate><?php echo date( 'r' ); ?></lastBuildDate>
    3704         <generator>https://bbpress.org/?v=<?php bbp_version(); ?></generator>
     3704        <generator><?php echo esc_url_raw( 'https://bbpress.org/?v=' . convert_chars( bbp_get_version() ) ); ?></generator>
    37053705        <language><?php bloginfo_rss( 'language' ); ?></language>
    37063706
Note: See TracChangeset for help on using the changeset viewer.