Skip to content

Commit 950edba

Browse files
committed
Merge commit '27dcb5f' into 4.0-dev
2 parents d762c2f + 27dcb5f commit 950edba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

administrator/components/com_joomlaupdate/src/Model/UpdateModel.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,10 @@ public function getNonCoreExtensions()
13311331
foreach ($rows as $extension)
13321332
{
13331333
$decode = json_decode($extension->manifest_cache);
1334+
1335+
// Removed description so that CDATA content does not cause javascript error during pre-update check
1336+
$decode->description = '';
1337+
13341338
$this->translateExtensionName($extension);
13351339
$extension->version
13361340
= isset($decode->version) ? $decode->version : Text::_('COM_JOOMLAUPDATE_PREUPDATE_UNKNOWN_EXTENSION_MANIFESTCACHE_VERSION');
@@ -1348,7 +1352,7 @@ public function getNonCoreExtensions()
13481352
*
13491353
* @return array name,version,updateserver
13501354
*
1351-
* @since 4.0.0
1355+
* @since 3.10.0
13521356
*/
13531357
public function getNonCorePlugins($folderFilter = array())
13541358
{
@@ -1387,6 +1391,10 @@ public function getNonCorePlugins($folderFilter = array())
13871391
foreach ($rows as $plugin)
13881392
{
13891393
$decode = json_decode($plugin->manifest_cache);
1394+
1395+
// Removed description so that CDATA content does not cause javascript error during pre-update check
1396+
$decode->description = '';
1397+
13901398
$this->translateExtensionName($plugin);
13911399
$plugin->version = $decode->version ?? Text::_('COM_JOOMLAUPDATE_PREUPDATE_UNKNOWN_EXTENSION_MANIFESTCACHE_VERSION');
13921400
unset($plugin->manifest_cache);

0 commit comments

Comments
 (0)