Skip to content

Commit

Permalink
Fixed #5934: Rss fails when XML has '&' in it.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3702 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Jul 18, 2005
1 parent b4c0807 commit 37dde2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions issues_rss.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: issues_rss.php,v 1.5 2005-07-13 20:44:46 thraxisp Exp $
# $Id: issues_rss.php,v 1.6 2005-07-18 13:09:36 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -49,11 +49,11 @@

$encoding = lang_get( 'charset' );
$about = $t_path;
$title = config_get( 'window_title' ) . ' - ' . lang_get( 'issues' );
$title = string_rss_links( config_get( 'window_title' ) . ' - ' . lang_get( 'issues' ) );
$image_link = $t_path . 'images/mantis_logo_button.gif';

# only rss 2.0
$category = project_get_name( $f_project_id );
$category = string_rss_links( project_get_name( $f_project_id ) );
if ( $f_project_id !== 0 ) {
$title .= ' - ' . $category;
}
Expand Down Expand Up @@ -142,13 +142,13 @@
$description = string_rss_links( $t_bug->description );

# subject is category.
$subject = $t_bug->category;
$subject = string_rss_links( $t_bug->category );

# optional DC value
$date = date( 'Y-m-d\TH:i:sO', $t_bug->last_updated );

# author of item
$author = user_get_name( $t_bug->reporter_id );
$author = string_rss_links( user_get_name( $t_bug->reporter_id ) );
if ( access_has_global_level( config_get( 'show_user_email_threshold' ) ) ) {
$t_author_email = user_get_field( $t_bug->reporter_id, 'email' );
if ( is_blank( $t_author_email ) ) {
Expand Down
10 changes: 5 additions & 5 deletions news_rss.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: news_rss.php,v 1.7 2005-06-20 15:13:42 vboctor Exp $
# $Id: news_rss.php,v 1.8 2005-07-18 13:09:36 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -34,13 +34,13 @@
# construct rss file

$encoding = lang_get( 'charset' );
$about = config_get( 'path' );
$title = config_get( 'window_title' ) . ' - ' . lang_get( 'news' );
$about = string_rss_links( config_get( 'path' ) );
$title = string_rss_links( config_get( 'window_title' ) . ' - ' . lang_get( 'news' ) );
$description = $title;
$image_link = config_get( 'path' ) . 'images/mantis_logo_button.gif';

# only rss 2.0
$category = project_get_name( $f_project_id );
$category = string_rss_links( project_get_name( $f_project_id ) );

# in minutes (only rss 2.0)
$cache = '60';
Expand Down Expand Up @@ -113,7 +113,7 @@
$date = $v_date_posted;

# author of item
$author = user_get_name( $v_poster_id );
$author = string_rss_links( user_get_name( $v_poster_id ) );
if ( access_has_global_level( config_get( 'show_user_email_threshold' ) ) ) {
$t_author_email = user_get_field( $v_poster_id, 'email' );
if ( is_blank( $t_author_email ) ) {
Expand Down

0 comments on commit 37dde2e

Please sign in to comment.