diff --git a/include/application.php b/include/application.php index de8e232..9ef9b71 100644 --- a/include/application.php +++ b/include/application.php @@ -514,10 +514,6 @@ class Application { /* display this application */ function display() { - $aClean = array(); //array of filtered user input - - $aClean['iAppId'] = makeSafe($_REQUEST['iAppId']); - /* is this user supposed to view this version? */ if(!$_SESSION['current']->canViewApplication($this)) util_show_error_page_and_exit("Something went wrong with the application or version id"); @@ -557,7 +553,7 @@ class Application { // optional links $result = query_parameters("SELECT * FROM appData WHERE appId = '?' AND versionID = 0 AND type = 'url'", - $aClean['iAppId']); + $this->iAppId); if($result && mysql_num_rows($result) > 0) { echo " Links\n"; @@ -614,7 +610,7 @@ class Application { if($_SESSION['current']->isSuperMaintainer($this->iAppId) || $_SESSION['current']->hasPriv("admin")) { - echo '
'; + echo '
'; } if($_SESSION['current']->isLoggedIn()) {