logo       
Google Custom Search
    AddThis Social Bookmark Button

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

mantisbt issues_rss.php,1.5,1.6 news_rss.php,1.7,1.8: msg#00069

Subject: mantisbt issues_rss.php,1.5,1.6 news_rss.php,1.7,1.8
Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29206

Modified Files:
        issues_rss.php news_rss.php 
Log Message:
Fixed #5934: Rss fails when XML has '&' in it.

Index: issues_rss.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/issues_rss.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- issues_rss.php      13 Jul 2005 20:44:46 -0000      1.5
+++ issues_rss.php      18 Jul 2005 13:09:36 -0000      1.6
@@ -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;
        }
@@ -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 ) ) {

Index: news_rss.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/news_rss.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- news_rss.php        20 Jun 2005 15:13:42 -0000      1.7
+++ news_rss.php        18 Jul 2005 13:09:36 -0000      1.8
@@ -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';
@@ -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 ) ) {



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>