Skip to content

Commit

Permalink
Dev: no need to sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed May 19, 2015
1 parent 2206577 commit bdf708a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/database.php
Expand Up @@ -176,7 +176,7 @@ function index($sa = null)
}
}
// Updating code (oldcode!==null) => update condition with the new code
$sOldCode=sanitize_paranoid_string(Yii::app()->request->getPost('oldcode_'.$iSortOrderID.'_'.$iScaleID));
$sOldCode=Yii::app()->request->getPost('oldcode_'.$iSortOrderID.'_'.$iScaleID);
if(isset($sOldCode) && $sCode !== $sOldCode)
{
Condition::model()->updateAll(array('value'=>$sCode), 'cqid=:cqid AND value=:value', array(':cqid'=>$iQuestionID, ':value'=>$sOldCode));
Expand Down

0 comments on commit bdf708a

Please sign in to comment.