Skip to content

Commit

Permalink
(Partially) Fixed issue #08034: Error: The CSRF token could not be ve…
Browse files Browse the repository at this point in the history
…rified. Fix for deleteing a Question

Dev Fix for deleteing a Question, not tested if this fix also resolves the whole issue
  • Loading branch information
kfegert committed Aug 13, 2013
1 parent bda7aac commit 1863484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/common_helper.php
Expand Up @@ -698,6 +698,8 @@ function convertGETtoPOST($url)
$arrayParam[] = "'".$paramname."'";
$arrayVal[] = substr($value, 0, 9) != "document." ? "'".$value."'" : $value;
}
$arrayParam[] = "'YII_CSRF_TOKEN'";
$arrayVal[] = "'".Yii::app()->request->csrfToken."'";
// $Paramlist = "[" . implode(",",$arrayParam) . "]";
// $Valuelist = "[" . implode(",",$arrayVal) . "]";
$Paramlist = "new Array(" . implode(",",$arrayParam) . ")";
Expand Down

0 comments on commit 1863484

Please sign in to comment.