mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 06:28:03 +01:00
Fixed XSS detection with :
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
* Fixed a bug in `PermissionsReader` in PHP 7.3
|
||||
* Fixed `session_store_active` language option (#3464)
|
||||
* Fixed deprecated warnings on `ArrayAccess` in PHP 8.1
|
||||
* Fixed XSS detection with `:`
|
||||
|
||||
# v1.7.23
|
||||
## 09/29/2021
|
||||
|
||||
@@ -203,7 +203,7 @@ class Security
|
||||
$string = preg_replace('!(�+[0-9]+)!u', '$1;', $string);
|
||||
|
||||
// Decode entities
|
||||
$string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8');
|
||||
$string = html_entity_decode($string, ENT_NOQUOTES | ENT_HTML5, 'UTF-8');
|
||||
|
||||
// Strip whitespace characters
|
||||
$string = preg_replace('!\s!u', '', $string);
|
||||
|
||||
Reference in New Issue
Block a user