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
!10571
#3493742
Decode title from xml.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
#3493742
Decode title from xml.
issue/drupal-3493742:3493742-11.x-decode-xml-correct
into
11.x
Overview
4
Commits
9
Pipelines
8
Changes
3
1 unresolved thread
Hide all comments
Closed
Jan Kellermann
requested to merge
issue/drupal-3493742:3493742-11.x-decode-xml-correct
into
11.x
5 months ago
Overview
4
Commits
9
Pipelines
8
Changes
3
1 unresolved thread
Hide all comments
Expand
Closes
#3493742
0
0
Merge request reports
Compare
11.x
version 7
3bcdd00c
5 months ago
version 6
369907ef
5 months ago
version 5
aeef5def
5 months ago
version 4
428d21d8
5 months ago
version 3
ef40a339
5 months ago
version 2
a0fc8163
5 months ago
version 1
90a58924
5 months ago
11.x (base)
and
latest version
latest version
184c0df3
9 commits,
5 months ago
version 7
3bcdd00c
8 commits,
5 months ago
version 6
369907ef
7 commits,
5 months ago
version 5
aeef5def
6 commits,
5 months ago
version 4
428d21d8
5 commits,
5 months ago
version 3
ef40a339
4 commits,
5 months ago
version 2
a0fc8163
3 commits,
5 months ago
version 1
90a58924
1 commit,
5 months ago
3 files
+
107
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
core/modules/update/src/UpdateProcessor.php
+
7
−
4
Options
@@ -5,11 +5,11 @@
use
Drupal\Component\Datetime\TimeInterface
;
use
Drupal\Component\Utility\Crypt
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\KeyValueStore\KeyValueFactoryInterface
;
use
Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface
;
use
Drupal\Core\
State\State
Interface
;
use
Drupal\Core\
KeyValueStore\KeyValueFactory
Interface
;
use
Drupal\Core\PrivateKey
;
use
Drupal\Core\Queue\QueueFactory
;
use
Drupal\Core\State\StateInterface
;
/**
* Process project update information.
@@ -90,9 +90,9 @@ class UpdateProcessor implements UpdateProcessorInterface {
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The config factory.
* @param \Drupal\Core\Queue\QueueFactory $queue_factory
* The queue factory
* The queue factory
.
* @param \Drupal\update\UpdateFetcherInterface $update_fetcher
* The update fetcher service
* The update fetcher service
.
* @param \Drupal\Core\State\StateInterface $state_store
* The state service.
* @param \Drupal\Core\PrivateKey $private_key
@@ -245,6 +245,9 @@ protected function parseXml($raw_xml) {
foreach
(
$xml
as
$k
=>
$v
)
{
$data
[
$k
]
=
(
string
)
$v
;
}
// Decode entities from XML.
$data
[
'title'
]
=
html_entity_decode
(
$data
[
'title'
],
ENT_QUOTES
|
ENT_HTML5
,
'UTF-8'
);
$data
[
'releases'
]
=
[];
if
(
isset
(
$xml
->
releases
))
{
foreach
(
$xml
->
releases
->
children
()
as
$release
)
{
Loading