From: <nuc...@us...> - 2008-08-13 12:46:29
|
Revision: 5510 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5510&view=rev Author: nuclear_eclipse Date: 2008-08-13 12:46:25 +0000 (Wed, 13 Aug 2008) Log Message: ----------- Fix #9532: News item contents were double-escaped. Modified Paths: -------------- trunk/mantisbt/core/news_api.php Modified: trunk/mantisbt/core/news_api.php =================================================================== --- trunk/mantisbt/core/news_api.php 2008-08-13 09:22:43 UTC (rev 5509) +++ trunk/mantisbt/core/news_api.php 2008-08-13 12:46:25 UTC (rev 5510) @@ -40,8 +40,6 @@ $c_poster_id = db_prepare_int( $p_poster_id ); $c_view_state = db_prepare_int( $p_view_state ); $c_announcement = db_prepare_bool( $p_announcement ); - $c_headline = db_prepare_string( $p_headline ); - $c_body = db_prepare_string( $p_body ); if ( is_blank( $c_headline ) ) { error_parameters( lang_get( 'headline' ) ); @@ -72,7 +70,7 @@ " . db_param() . " )"; db_query_bound( $query, Array( $c_project_id, $c_poster_id, db_now(), db_now(), - $c_view_state, $c_announcement, $c_headline, $c_body) ); + $c_view_state, $c_announcement, $p_headline, $p_body) ); $t_news_id = db_insert_id( $t_news_table ); @@ -117,8 +115,6 @@ $c_project_id = db_prepare_int( $p_project_id ); $c_view_state = db_prepare_int( $p_view_state ); $c_announcement = db_prepare_bool( $p_announcement ); - $c_headline = db_prepare_string( $p_headline ); - $c_body = db_prepare_string( $p_body ); if ( is_blank( $c_headline ) ) { error_parameters( lang_get( 'headline' ) ); @@ -142,7 +138,7 @@ last_modified= " . db_param() . " WHERE id=" . db_param(); - db_query_bound( $query, Array( $c_view_state, $c_announcement, $c_headline, $c_body, $c_project_id, db_now(), $c_news_id ) ); + db_query_bound( $query, Array( $c_view_state, $c_announcement, $p_headline, $p_body, $c_project_id, db_now(), $c_news_id ) ); # db_query errors on failure so: return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |