From: Victor B. <vb...@us...> - 2005-04-27 14:37:21
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13893/core Modified Files: string_api.php Log Message: Fixed #3907: Bad RSS link on http://bugs.mantisbt.org/ Fixed #5046: Unreadable RSS data Fixed #5512: "XML Parsing Error: undefined entity" in issues rss feed Fixed #5528: Issue category in the issues rss was set to the issue summary Index: string_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/string_api.php,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- string_api.php 26 Apr 2005 01:49:02 -0000 1.70 +++ string_api.php 27 Apr 2005 14:37:12 -0000 1.71 @@ -106,6 +106,25 @@ } # -------------------- + # Prepare a string for display in rss + function string_rss_links( $p_string ) { + # rss can not start with which spaces will be replaced into by string_display(). + $t_string = trim( $p_string ); + + # same steps as string_display_links() without the preservation of spaces since is undefined in XML. + $t_string = string_strip_hrefs( $t_string ); + $t_string = htmlspecialchars( $t_string ); + $t_string = string_restore_valid_html_tags( $t_string ); + $t_string = string_nl2br( $t_string ); + $t_string = string_insert_hrefs( $t_string ); + $t_string = string_process_bug_link( $t_string ); + $t_string = string_process_bugnote_link( $t_string ); + $t_string = string_process_cvs_link( $t_string ); + + return $t_string; + } + + # -------------------- # Prepare a string for plain text display in email function string_email( $p_string ) { $p_string = string_strip_hrefs( $p_string ); @@ -125,6 +144,8 @@ return $p_string; } + + # -------------------- # Process a string for display in a textarea box function string_textarea( $p_string ) { |