ChangeSet ID: 26259 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/07/06 23:51:41
Modified files: . : appview.php
Log message: Jonathan Ernst jonathan@ernstfamily.ch Enable filtering in appview.php
Patch: http://cvs.winehq.org/patch.py?id=26259
Old revision New revision Changes Path 1.89 1.90 +3 -8 appdb/appview.php
Index: appdb/appview.php diff -u -p appdb/appview.php:1.89 appdb/appview.php:1.90 --- appdb/appview.php:1.89 7 Jul 2006 4:51:41 -0000 +++ appdb/appview.php 7 Jul 2006 4:51:41 -0000 @@ -20,6 +20,7 @@ // application environment include("path.php"); require(BASE."include/incl.php"); +require(BASE."include/filter.php"); require(BASE."include/application.php"); require(BASE."include/appdb.php"); require(BASE."include/vote.php"); @@ -29,13 +30,6 @@ require(BASE."include/mail.php"); require(BASE."include/monitor.php"); require_once(BASE."include/testResults.php");
-$aClean = array(); //array of filtered user input - -$aClean['iAppId'] = makeSafe($_REQUEST['iAppId']); -$aClean['iVersionId'] = makeSafe($_REQUEST['iVersionId']); -$aClean['sSub'] = makeSafe($_REQUEST['sSub']); -$aClean['iBuglinkId'] = makeSafe($_REQUEST['iBuglinkId']); - $oApp = new Application($aClean['iAppId']); $oVersion = new Version($aClean['iVersionId']);
@@ -94,7 +88,8 @@ function display_bundle($iAppId) echo html_frame_end(); }
-if(!is_numeric($aClean['iAppId']) && !is_numeric($aClean['iVersionId'])) +// if both iAppId and iVersionId are empty we have a problem +if(empty($aClean['iAppId']) && empty($aClean['iVersionId'])) util_show_error_page_and_exit("Something went wrong with the application or version id");
if ($aClean['sSub'])