Skip to content

Commit

Permalink
0004183: [filters] HTML entities in search text
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2767 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
narcissus committed Jul 27, 2004
1 parent fae307b commit 5c25c1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/filter_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: filter_api.php,v 1.51 2004-07-21 12:48:00 vboctor Exp $
# $Id: filter_api.php,v 1.52 2004-07-27 11:44:26 narcissus Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -1306,7 +1306,7 @@ function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e
collapse_icon( 'filter' );
echo lang_get( 'search' );
?>:
<input type="text" size="16" name="search" value="<?php PRINT $t_filter['search']; ?>" />
<input type="text" size="16" name="search" value="<?php PRINT htmlspecialchars( $t_filter['search'] ); ?>" />

<input type="submit" name="filter" class="button" value="<?php PRINT lang_get( 'search' ) ?>" />
</td>
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -13,6 +13,7 @@ Mantis ChangeLog
- 0004121: [filters] Filters saved while "All Projects" is the active project (narcissus)
- 0004125: [filters] In the advanced page, "any" should be selected by default for all search criteria (narcissus)
- 0004150: [filters] Custom field names are not localised in filters (vboctor)
- 0004183: [filters] HTML entities in search text (narcissus)
- 0004122: [relationships] Upgrade script seems to swap the duplicate relationship (masc)
- 0004083: [sponsorships] Users without email address must not be able to sponsor issues (thraxisp)
- 0002861: [bugtracker] misleading 'copyright' at the pages' bottom (vboctor)
Expand Down
2 changes: 1 addition & 1 deletion view_filters_page.php
Expand Up @@ -483,7 +483,7 @@ function SwitchDateFields() {
<tr>
<!-- Search field -->
<td colspan="<?php echo ( 1 * $t_custom_cols ); ?>">
<input type="text" size="16" name="search" value="<?php echo $t_filter['search']; ?>" />
<input type="text" size="16" name="search" value="<?php echo htmlspecialchars( $t_filter['search'] ); ?>" />
</td>

<td class="small-caption" colspan="<?php echo ( 5 * $t_custom_cols ); ?>"></td>
Expand Down

0 comments on commit 5c25c1d

Please sign in to comment.