mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 13:01:08 -05:00
fixed CSRF issue as mentioned in https://github.com/claudehohl/Stikked/issues/435
This commit is contained in:
parent
bd34454758
commit
335cebd4fd
@ -125,6 +125,14 @@
|
||||
<i class="icon-pencil icon-white"></i>
|
||||
<?php echo lang('paste_create'); ?>
|
||||
</button>
|
||||
<?php
|
||||
if ($this->config->item('csrf_protection') === TRUE)
|
||||
{
|
||||
if(isset($_COOKIE[$this->config->item('csrf_cookie_name')])) {
|
||||
echo '<input type="hidden" name="'.$this->config->item('csrf_token_name').'" value="'.html_escape($_COOKIE[$this->config->item('csrf_cookie_name')]).'" style="display:none;" />'."\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -133,5 +133,13 @@
|
||||
|
||||
<div><button type="submit" value="submit" name="submit"><?php echo lang('paste_create'); ?></button></div>
|
||||
<div class="spacer"></div>
|
||||
<?php
|
||||
if ($this->config->item('csrf_protection') === TRUE)
|
||||
{
|
||||
if(isset($_COOKIE[$this->config->item('csrf_cookie_name')])) {
|
||||
echo '<input type="hidden" name="'.$this->config->item('csrf_token_name').'" value="'.html_escape($_COOKIE[$this->config->item('csrf_cookie_name')]).'" style="display:none;" />'."\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -131,6 +131,15 @@
|
||||
?>
|
||||
|
||||
<div class="clear"><button type="submit" value="submit" name="submit"><?php echo lang('paste_create'); ?></button></div>
|
||||
<?php
|
||||
if ($this->config->item('csrf_protection') === TRUE)
|
||||
{
|
||||
if(isset($_COOKIE[$this->config->item('csrf_cookie_name')])) {
|
||||
echo '<input type="hidden" name="'.$this->config->item('csrf_token_name').'" value="'.html_escape($_COOKIE[$this->config->item('csrf_cookie_name')]).'" style="display:none;" />'."\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="spacer"></div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
@ -132,6 +132,14 @@
|
||||
<?php echo lang('paste_create'); ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->config->item('csrf_protection') === TRUE)
|
||||
{
|
||||
if(isset($_COOKIE[$this->config->item('csrf_cookie_name')])) {
|
||||
echo '<input type="hidden" name="'.$this->config->item('csrf_token_name').'" value="'.html_escape($_COOKIE[$this->config->item('csrf_cookie_name')]).'" style="display:none;" />'."\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -134,6 +134,14 @@
|
||||
<i class="icon-pencil icon-white"></i>
|
||||
<?php echo lang('paste_create'); ?>
|
||||
</button>
|
||||
<?php
|
||||
if ($this->config->item('csrf_protection') === TRUE)
|
||||
{
|
||||
if(isset($_COOKIE[$this->config->item('csrf_cookie_name')])) {
|
||||
echo '<input type="hidden" name="'.$this->config->item('csrf_token_name').'" value="'.html_escape($_COOKIE[$this->config->item('csrf_cookie_name')]).'" style="display:none;" />'."\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -134,6 +134,14 @@
|
||||
<?php echo lang('paste_create'); ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->config->item('csrf_protection') === TRUE)
|
||||
{
|
||||
if(isset($_COOKIE[$this->config->item('csrf_cookie_name')])) {
|
||||
echo '<input type="hidden" name="'.$this->config->item('csrf_token_name').'" value="'.html_escape($_COOKIE[$this->config->item('csrf_cookie_name')]).'" style="display:none;" />'."\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user