appdb/include filter.php

WineHQ wineowner at wine.codeweavers.com
Fri Jul 7 11:01:27 CDT 2006


ChangeSet ID:	26283
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/07/07 11:01:26

Modified files:
	include        : filter.php 

Log message:
	Jonathan Ernst <jonathan at ernstfamily.ch>
	Empty numeric values should default to 0

Patch: http://cvs.winehq.org/patch.py?id=26283

Old revision  New revision  Changes     Path
 1.4           1.5           +2 -0       appdb/include/filter.php

Index: appdb/include/filter.php
diff -u -p appdb/include/filter.php:1.4 appdb/include/filter.php:1.5
--- appdb/include/filter.php:1.4	7 Jul 2006 16: 1:26 -0000
+++ appdb/include/filter.php	7 Jul 2006 16: 1:26 -0000
@@ -17,6 +17,8 @@ function filter_gpc()
             case "f": // float
                 if(is_numeric($_REQUEST[$aKeys[$i]]))
                     $aClean[$aKeys[$i]] = $_REQUEST[$aKeys[$i]];
+                elseif(empty($_REQUEST[$aKeys[$i]]))
+                    $aClean[$aKeys[$i]] = 0;
                 else
                     util_show_error_page_and_exit("Fatal error: ".$aKeys[$i]." should be a numeric value.");
             break;



More information about the wine-cvs mailing list