Browse Source

[svn r21906] Minor - Replacing security::remove by intval see FS#4389

Julio Montoya 15 years ago
parent
commit
84b5ad056c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/gradebook/lib/fe/flatviewtable.class.php

+ 2 - 2
main/gradebook/lib/fe/flatviewtable.class.php

@@ -102,7 +102,7 @@ class FlatViewTable extends SortableTable
 			// Cache definition   
 			$Cache = new pCache();
 			// the graph id
-			$gradebook_id = Security::remove_XSS($_GET['selectcat']);			
+			$gradebook_id = intval($_GET['selectcat']);			
 			$graph_id = api_get_user_id().'AverageResultsVsResource'.$gradebook_id.api_get_course_id();
 			$data = $DataSet->GetData();
 		
@@ -262,7 +262,7 @@ class FlatViewTable extends SortableTable
 					// Cache definition   
 					$Cache = new pCache();
 					// the graph id
-					$gradebook_id = Security::remove_XSS($_GET['selectcat']);			
+					$gradebook_id = intval($_GET['selectcat']);		 	
 					$graph_id = api_get_user_id().'ByResource'.$gradebook_id.api_get_course_id();
 										
 					if ($show_draw) {