Skip to content

Commit

Permalink
fix double-escaping in category update
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed May 26, 2009
1 parent f625f65 commit ffc522c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/category_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ function category_update( $p_category_id, $p_name, $p_assigned_to ) {
$t_old_category = category_get_row( $p_category_id );

$c_category_id = db_prepare_int( $p_category_id );
$c_name = db_prepare_string( $p_name );
$c_assigned_to = db_prepare_int( $p_assigned_to );

$t_category_table = db_get_table( 'mantis_category_table' );
Expand All @@ -157,7 +156,7 @@ function category_update( $p_category_id, $p_name, $p_assigned_to ) {
SET name=" . db_param() . ',
user_id=' . db_param() . '
WHERE id=' . db_param();
db_query_bound( $query, array( $c_name, $c_assigned_to, $c_category_id ) );
db_query_bound( $query, array( $p_name, $c_assigned_to, $c_category_id ) );

# Add bug history entries if we update the category's name
if( $t_old_category['name'] != $c_name ) {
Expand Down

0 comments on commit ffc522c

Please sign in to comment.