Skip to content

Commit

Permalink
Fix? 0008580: Leading Zeros in Notes Bug-Hyperlinks
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4761 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Nov 16, 2007
1 parent 8242a85 commit 8b33c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/string_api.php
Expand Up @@ -294,7 +294,7 @@ function string_process_bug_link( $p_string, $p_include_anchor = true, $p_detail
if ($p_include_anchor) {
$callback = create_function('$p_array','
if (bug_exists( (int)$p_array[2] ) ) {
return $p_array[1] . string_get_bug_view_link( $p_array[2], null, ' . ($p_detail_info ? 'true' : 'false') . ', ' . ($p_fqdn ? 'true' : 'false') . ');
return $p_array[1] . string_get_bug_view_link( (int)$p_array[2], null, ' . ($p_detail_info ? 'true' : 'false') . ', ' . ($p_fqdn ? 'true' : 'false') . ');
} else {
return $p_array[0];
}
Expand All @@ -306,7 +306,7 @@ function string_process_bug_link( $p_string, $p_include_anchor = true, $p_detail
# the summary lookup on a non-existant bug. But here, we
# can create the link and by the time it is clicked on, the
# bug may exist.
return $p_array[1] . string_get_bug_view_url_with_fqdn( $p_array[2], null );
return $p_array[1] . string_get_bug_view_url_with_fqdn( (int)$p_array[2], null );
');
}

Expand Down

0 comments on commit 8b33c88

Please sign in to comment.