Skip to content

Commit

Permalink
Fixed issue [security]: removed post request from query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 3, 2017
1 parent 0d25142 commit b9332f6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions application/controllers/admin/responses.php
Expand Up @@ -1089,10 +1089,6 @@ function oldbrowse($iSurveyID)
$limit = $dtcount;
}

//NOW LETS SHOW THE DATA
if (Yii::app()->request->getPost('sql') && stripcslashes(Yii::app()->request->getPost('sql')) !== "" && Yii::app()->request->getPost('sql') != "NULL")
$oCriteria->addCondition(stripcslashes(Yii::app()->request->getPost('sql')));

if (!is_null($tokenRequest)) {
$oCriteria->addCondition('t.token = ' . Yii::app()->db->quoteValue($tokenRequest));
}
Expand Down

0 comments on commit b9332f6

Please sign in to comment.