Skip to content

Commit

Permalink
Merge branch 'release/1.10.20'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Sep 1, 2021
2 parents 120ea4a + 3440462 commit cc6af64
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v1.10.20
## 09/01/2021

3. [](#bugfix)
* Fixed regression `Argument 4 passed to Grav\Plugin\Form\TwigExtension::prepareFormField() must be of the type array` [#2177](https://github.com/getgrav/grav-plugin-admin/issues/2177)
* Fixed `X-Frame-Options` to be `DENY` in all admin pages to prevent a clickjacking attack

# v1.10.19
## 08/31/2021

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Admin Panel
slug: admin
type: plugin
version: 1.10.19
version: 1.10.20
description: Adds an advanced administration panel to manage your site
icon: empire
author:
Expand Down
2 changes: 1 addition & 1 deletion classes/plugin/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$this->stopTimer();

// Never allow admin pages to be rendered in <frame>, <iframe>, <embed> or <object> for improved security.
return $response->withHeader('X-Frame-Options', 'NONE');
return $response->withHeader('X-Frame-Options', 'DENY');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

{% if field.fields %}
{% for child_name, child in field.fields %}
{% set child = prepare_form_field(child, child_name, field.name, key) %}
{% set child = prepare_form_field(child, child_name, field.name, {key: key}) %}
{% if child %}
{% set default_layout = 'text' %}
{% if child.type == 'key' or child.key == true %}
Expand Down

0 comments on commit cc6af64

Please sign in to comment.