Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!4214
Issue
#3366843
: Fix tests broken on PHP 8.3
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3366843
: Fix tests broken on PHP 8.3
issue/drupal-3366843:3366843-domattr-value
into
11.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Closed
Andrey Postnikov
requested to merge
issue/drupal-3366843:3366843-domattr-value
into
11.x
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
11.x
version 2
943a8c92
1 year ago
version 1
236f508d
1 year ago
11.x (base)
and
latest version
latest version
765f42e7
1 commit,
1 year ago
version 2
943a8c92
1 commit,
1 year ago
version 1
236f508d
1 commit,
1 year ago
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/modules/editor/src/EditorXssFilter/Standard.php
+
4
−
1
Options
@@ -94,7 +94,10 @@ protected static function filterXssDataAttributes($html) {
// value. There is no need to explicitly decode $node->value, since the
// DOMAttr::value getter returns the decoded value.
$value
=
Xss
::
filterAdmin
(
$node
->
value
);
$node
->
value
=
Html
::
escape
(
$value
);
// Work around https://github.com/php/php-src/issues/8388
// Assigning to $node->value decodes the value, contrary to the DOM spec.
$node
->
value
=
''
;
$node
->
appendChild
(
new
\DOMText
(
$value
));
}
$html
=
Html
::
serialize
(
$dom
);
}
Loading