php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60541
Patch sanitize_integers revision 2011-12-16 00:07 UTC by klaussilveira@php.net

Patch sanitize_integers for Filter related Bug #60541

Patch version 2011-12-16 00:07 UTC

Return to Bug #60541 | Download this patch
Patch Revisions:

Developer: klaussilveira@php.net

Index: sanitizing_filters.c
===================================================================
--- sanitizing_filters.c	(revision 321048)
+++ sanitizing_filters.c	(working copy)
@@ -331,7 +331,7 @@
 void php_filter_number_int(PHP_INPUT_FILTER_PARAM_DECL)
 {
 	/* strip everything [^0-9+-] */
-	const unsigned char allowed_list[] = "+-" DIGIT;
+	const unsigned char allowed_list[] = DIGIT;
 	filter_map     map;
 
 	filter_map_init(&map);
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 06:03:58 2023 UTC