ChangeSet ID: 26334 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/07/07 12:24:57
Modified files: . : appsubmit.php
Log message: Chris Morgan cmorgan@alum.wpi.edu Revert filtering in appsubmit, this requires a TON of other changes and we'll want to wait until every other change goes in before appling this change
Patch: http://cvs.winehq.org/patch.py?id=26334
Old revision New revision Changes Path 1.51 1.52 +14 -1 appdb/appsubmit.php
Index: appdb/appsubmit.php diff -u -p appdb/appsubmit.php:1.51 appdb/appsubmit.php:1.52 --- appdb/appsubmit.php:1.51 7 Jul 2006 17:24:57 -0000 +++ appdb/appsubmit.php 7 Jul 2006 17:24:57 -0000 @@ -25,12 +25,25 @@ // application environment include("path.php"); require_once(BASE."include/incl.php"); -require_once(BASE."include/filter.php"); require_once(BASE."include/tableve.php"); require_once(BASE."include/application.php"); require_once(BASE."include/mail.php"); require_once(BASE."include/testResults.php");
+$aClean = array(); //array of filtered user input + +$aClean['sAppType'] = makeSafe($_REQUEST['sAppType']); +$aClean['sSub'] = makeSafe($_REQUEST['sSub']); +$aClean['iAppId'] = makeSafe($_REQUEST['iAppId']); +$aClean['iVersionId'] = makeSafe($_REQUEST['iVersionId']); +$aClean['iTestingId'] = makeSafe($_REQUEST['iTestingId']); +$aClean['sAppVendorName'] = makeSafe($_REQUEST['sAppVendorName']); +$aClean['iVendorId'] = makeSafe($_REQUEST['iVendorId']); +$aClean['sAppWebpage'] = makeSafe($_REQUEST['sAppWebpage']); +$aClean['sAppKeywords'] = makeSafe($_REQUEST['sAppKeywords']); +$aClean['iDistributionId'] = makeSafe($_REQUEST['iDistributionId']); +$aClean['sDistribution'] = makeSafe($_REQUEST['sDistribution']); + function get_vendor_from_keywords($sKeywords) { $aKeywords = explode(" *** ",$sKeywords);