Should this be db_prepare_int?
$c_user_id = db_prepare_string( $p_user_id );


On Fri, Mar 6, 2009 at 7:02 AM, <git@mantisbt.org> wrote:
The branch, master has been updated
      via  22dbf9952c3bcbf68a2e5f7b13e80e361885049f (commit)
     from  7df327ddfa88a0468d468c07fddf8d9750579196 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 22dbf9952c3bcbf68a2e5f7b13e80e361885049f
Author: John Reese <jreese@leetcode.net>
Date:   Fri Mar 6 10:02:00 2009 -0500

   Fix double-escaping of strings when updating tag name or description.

-----------------------------------------------------------------------

Summary of changes:
 core/tag_api.php |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------

commit 22dbf9952c3bcbf68a2e5f7b13e80e361885049f
Author: John Reese <jreese@leetcode.net>
Date:   Fri Mar 6 10:02:00 2009 -0500

   Fix double-escaping of strings when updating tag name or description.

diff --git a/core/tag_api.php b/core/tag_api.php
index be63852..2a8e5a5 100644
--- a/core/tag_api.php
+++ b/core/tag_api.php
@@ -349,8 +349,6 @@ function tag_update( $p_tag_id, $p_name, $p_user_id, $p_description ) {

       $c_tag_id = trim( db_prepare_int( $p_tag_id ) );
       $c_user_id = db_prepare_string( $p_user_id );
-       $c_name = db_prepare_string( $p_name );
-       $c_description = db_prepare_string( $p_description );
       $c_date_updated = db_now();

       $t_tag_table = db_get_table( 'mantis_tag_table' );
@@ -361,7 +359,7 @@ function tag_update( $p_tag_id, $p_name, $p_user_id, $p_description ) {
                                               description=" . db_param() . ",
                                               date_updated=" . db_param() . "
                                       WHERE id=" . db_param();
-       db_query_bound( $query, Array( $c_user_id, $c_name, $c_description, $c_date_updated, $c_tag_id ) );
+       db_query_bound( $query, Array( $c_user_id, $p_name, $p_description, $c_date_updated, $c_tag_id ) );

       if( $t_rename ) {
               $t_bugs = tag_get_bugs_attached( $p_tag_id );

-----------------------------------------------------------------------


--
Mantis Bug Tracker

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
mantisbt-cvs mailing list
mantisbt-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-cvs