Skip to content

Commit 45f9e74

Browse files
committedJan 18, 2013
filter api: always treat FILTER_PROPERTY_MATCH_TYPE as an int value
Based on @dregad's comments, this follows up on @dhx's fix. Fixes #15373: XSS vulnerability
1 parent f5ac454 commit 45f9e74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎core/filter_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3395,7 +3395,7 @@ function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e
33953395
echo lang_get ('filter_match_all');
33963396
}
33973397
?>
3398-
<input type="hidden" name="match_type" value="<?php echo string_attribute( $t_filter[FILTER_PROPERTY_MATCH_TYPE] )?>"/>
3398+
<input type="hidden" name="match_type" value="<?php echo $t_filter[FILTER_PROPERTY_MATCH_TYPE] ?>"/>
33993399
</td>
34003400
<td colspan="6">&#160;</td>
34013401
</tr>

‎view_all_set.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
$f_note_user_id = array( $f_note_user_id );
234234
}
235235

236-
$f_match_type = gpc_get_string ( FILTER_PROPERTY_MATCH_TYPE, FILTER_MATCH_ALL );
236+
$f_match_type = gpc_get_int ( FILTER_PROPERTY_MATCH_TYPE, FILTER_MATCH_ALL );
237237

238238
# these are only single values, even when doing advanced filtering
239239
$f_per_page = gpc_get_int( FILTER_PROPERTY_ISSUES_PER_PAGE, -1 );

0 commit comments

Comments
 (0)
Please sign in to comment.