Skip to content

Commit ee49833

Browse files
committed
docs: add changelog and upgrading guide
1 parent 184dd46 commit ee49833

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.3.0.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ The following items are affected:
291291

292292
- Typography class: Creation of ``br`` tag
293293
- View Parser: The ``nl2br`` filter
294+
- Honeypot: ``input`` tag
294295
- Form helper
295296
- HTML helper
296297
- Common Functions
@@ -364,3 +365,4 @@ Bugs Fixed
364365
- Fixed a bug when all types of ``Prepared Queries`` were returning a ``Result`` object instead of a bool value for write-type queries.
365366
- Fixed a bug with variable filtering in JSON requests using with ``IncomingRequest::getVar()`` or ``IncomingRequest::getJsonVar()`` methods.
366367
- Fixed a bug when variable type may be changed when using a specified index with ``IncomingRequest::getVar()`` or ``IncomingRequest::getJsonVar()`` methods.
368+
- Fixed a bug that Honeypot field appears when CSP is enabled. See also :ref:`upgrade-430-honeypot-and-csp`.

user_guide_src/source/installation/upgrade_430.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,16 @@ Database
216216
- The ``Model::update()`` method now raises a ``DatabaseException`` if it generates an SQL
217217
statement without a WHERE clause. If you need to update all records in a table, use Query Builder instead. E.g., ``$model->builder()->update($data)``.
218218

219+
.. _upgrade-430-honeypot-and-csp:
220+
221+
Honeypot and CSP
222+
================
223+
224+
When CSP is enabled, id attribute ``id="hpc"`` will be injected into the container tag
225+
for the Honeypot field to hide the field. If the id is already used in your views, you need to change it
226+
with ``Config\Honeypot::$containerId``.
227+
And you can remove ``style="display:none"`` in ``Config\Honeypot::$container``.
228+
219229
Others
220230
======
221231

@@ -260,6 +270,10 @@ Config
260270
- app/Config/Exceptions.php
261271
- Two additional public properties were added: ``$logDeprecations`` and ``$deprecationLogLevel``.
262272
See See :ref:`logging_deprecation_warnings` for details.
273+
- app/Config/Honeypot.php
274+
- The new property ``$containerId`` is added to set id attribute value for the container tag
275+
when CSP is enabled.
276+
- The ``input`` tag in the property ``$template`` value has been changed to HTML5 compatible.
263277
- app/Config/Logger.php
264278
- The property ``$threshold`` has been changed to ``9`` in other than ``production``
265279
environment.

0 commit comments

Comments
 (0)