Skip to content

Commit

Permalink
Fix: Duplicate queries can be generated by string_process_bug_link
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4349 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed May 8, 2007
1 parent 6486284 commit f2d0780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/string_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: string_api.php,v 1.86 2007-04-04 06:45:23 vboctor Exp $
# $Id: string_api.php,v 1.87 2007-05-08 22:19:18 prichards Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -283,7 +283,7 @@ function string_process_bug_link( $p_string, $p_include_anchor = true, $p_detail

if ( isset( $t_match[2] ) ) {
$t_bug_id = $t_match[2];
if ( bug_exists( $t_bug_id ) ) {
if ( bug_exists( (int)$t_bug_id ) ) {
$t_result .= string_get_bug_view_link( $t_bug_id, null, $p_detail_info, $p_fqdn );
} else {
$t_result .= $t_bug_id;
Expand Down

0 comments on commit f2d0780

Please sign in to comment.