Skip to content

Commit

Permalink
Fixed issue #11227: [security] XSS in template editing
Browse files Browse the repository at this point in the history
Dev: remove uneeded input
  • Loading branch information
Shnoulle committed May 24, 2016
1 parent 9149b32 commit 67b3976
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions application/views/admin/templates/templatesummary_view.php
Expand Up @@ -49,9 +49,6 @@
<div class="col-lg-8 templateeditor">
<?php echo CHtml::form(array('admin/templates/sa/templatesavechanges'), 'post', array('id'=>'editTemplate', 'name'=>'editTemplate')); ?>

<?php if(isset($_GET['editfile'])):?>
<input type='hidden' name='editfileindex' value='<?php echo $_GET['editfile']; ?>' />
<?php endif;?>
<?php echo CHtml::hiddenField('templatename', $templatename, array('class'=>'templatename'));
echo CHtml::hiddenField('screenname', $screenname, array('class'=>'screenname'));
echo CHtml::hiddenField('editfile', $editindex);
Expand Down Expand Up @@ -101,9 +98,6 @@
echo CHtml::hiddenField('screenname', $screenname, array('class'=>'screenname')); ?>
<input type='hidden' name='editfile' value='<?php echo $editfile; ?>' />
<input type='hidden' name='action' value='templatefiledelete' />
<?php if(isset($_GET['editfile'])):?>
<input type='hidden' name='editfileindex' value='<?php echo $_GET['editfile']; ?>' />
<?php endif;?>

</form>
</div>
Expand All @@ -125,9 +119,6 @@
<?php echo CHtml::hiddenField('templatename', $templatename, array('class'=>'templatename'));
echo CHtml::hiddenField('screenname', $screenname, array('class'=>'screenname')); ?>
<input type='hidden' name='action' value='templateuploadfile' />
<?php if(isset($_GET['editfile'])):?>
<input type='hidden' name='editfileindex' value='<?php echo $_GET['editfile']; ?>' />
<?php endif;?>
</form>
<?php
}
Expand Down

0 comments on commit 67b3976

Please sign in to comment.