TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _deprecation-76164:
|
||||
|
||||
=========================================
|
||||
Deprecation: #76164 - Deprecate RemoveXSS
|
||||
=========================================
|
||||
|
||||
See :issue:`76164`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
Due to the wrong approach of RemoveXSS it is not 100% secure and does not keep its
|
||||
promise. The following methods have been marked as deprecated:
|
||||
|
||||
- :php:`\TYPO3\CMS\Core\Utility\GeneralUtility::removeXSS()`
|
||||
- :php:`\RemoveXSS::process()`
|
||||
- :php:`\TYPO3\CMS\Form\Domain\Filter\RemoveXssFilter`
|
||||
|
||||
|
||||
Impact
|
||||
======
|
||||
|
||||
Using the mentioned methods will trigger a deprecation log entry.
|
||||
|
||||
|
||||
Affected Installations
|
||||
======================
|
||||
|
||||
Instances that use any of these methods.
|
||||
|
||||
|
||||
Migration
|
||||
=========
|
||||
|
||||
Implement a proper encoding by yourself. Use :php:`htmlspecialchars()` in the
|
||||
context of HTML or :php:`GeneralUtility::quoteJSvalue()` in the context of JavaScript.
|
||||
|
||||
.. index:: PHP-API
|
||||
Reference in New Issue
Block a user