Skip to content

Commit

Permalink
Fixed issue: possible cross-site scripting issue in update view.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 13, 2016
1 parent ecc649e commit 1bfaffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/views/admin/update/_ajaxVariables.php
Expand Up @@ -17,8 +17,8 @@
?>

<script>
var csrf_token_name = "<?php echo Yii::app()->request->csrfTokenName;?>";
var csrf_token = "<?php echo Yii::app()->request->csrfToken;?>";
var csrf_token_name = "<?php echo sanitize_paranoid_string(Yii::app()->request->csrfTokenName);?>";
var csrf_token = "<?php echo sanitize_paranoid_string(Yii::app()->request->csrfToken);?>";
</script>

<?php if(isset($_REQUEST['update'])):?>
Expand Down

0 comments on commit 1bfaffc

Please sign in to comment.