[svn r20308] Filter answer ID to avoid nasty security flaw

skala
Carlos Vargas 17 years ago
parent 0811e1a049
commit 2c1930653e
  1. 4
      main/exercice/answer.class.php

@ -23,7 +23,7 @@
* 5 arrays are created to receive the attributes of each answer belonging to a specified question
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: answer.class.php 17944 2009-01-22 20:41:25Z juliomontoya $
* @version $Id: answer.class.php 20308 2009-05-05 00:42:54Z cvargas1 $
*/
@ -67,7 +67,7 @@ class Answer
function Answer($questionId)
{
//$this->questionType=$questionType;
$this->questionId=$questionId;
$this->questionId=(int)$questionId;
$this->answer=array();
$this->correct=array();
$this->comment=array();

Loading…
Cancel
Save