Skip to content

Commit

Permalink
Merge pull request #331 from JoomShaper/hu-160
Browse files Browse the repository at this point in the history
htmlspecialchars() & json_decode() null coalesing added
  • Loading branch information
mi-prakash authored May 19, 2023
2 parents 5b298b9 + 3e51c35 commit 8d3439c
Show file tree
Hide file tree
Showing 70 changed files with 164 additions and 164 deletions.
4 changes: 2 additions & 2 deletions plugins/system/helixultimate/fields/helixfont.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ protected function getInput()
$json = file_get_contents($plugin_path);
}

$webfonts = json_decode($json);
$webfonts = json_decode($json ?? "");
$items = $webfonts->items;
$value = json_decode($this->value);
$value = json_decode($this->value ?? "");

if (isset($value->fontFamily))
{
Expand Down
4 changes: 2 additions & 2 deletions plugins/system/helixultimate/fields/helixgallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function getInput()

$plg_path = Uri::root(true) . '/plugins/system/helixultimate';

$values = json_decode($this->value);
$values = json_decode($this->value ?? "");

if (!empty($values))
{
Expand Down Expand Up @@ -93,7 +93,7 @@ protected function getInput()
$output .= '<input type="file" id="hu-gallery-item-upload" accept="image/*" multiple="multiple" style="display:none;">';
$output .= '<a class="btn btn-default btn-secondary btn-hu-gallery-item-upload" href="#"><i class="fas fa-plus" aria-hidden="true"></i> ' . Text::_('HELIX_ULTIMATE_UPLOAD_IMAGES') . '</a>';

$output .= '<input type="hidden" name="' . $this->name . '" data-name="' . $this->element['name'] . '_images" id="' . $this->id . '" value="' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8')
$output .= '<input type="hidden" name="' . $this->name . '" data-name="' . $this->element['name'] . '_images" id="' . $this->id . '" value="' . htmlspecialchars($this->value ?? "", ENT_COMPAT, 'UTF-8')
. '" class="form-field-hu-gallery">';
$output .= '</div>';

Expand Down
2 changes: 1 addition & 1 deletion plugins/system/helixultimate/fields/heliximage.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function getInput()
$output .= '<a class="btn btn-primary btn-hu-image-upload" href="#"><i class="fas fa-plus" aria-hidden="true"></i> ' . Text::_('HELIX_ULTIMATE_UPLOAD_IMAGE') . '</a>';
$output .= '<a class="btn btn-danger btn-hu-image-remove" href="#"><i class="fas fa-minus-circle" aria-hidden="true"></i> ' . Text::_('HELIX_ULTIMATE_REMOVE_IMAGE') . '</a>';

$output .= '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '" value="' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8')
$output .= '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '" value="' . htmlspecialchars($this->value ?? "", ENT_COMPAT, 'UTF-8')
. '" class="form-field-hu-image">';
$output .= '</div>';

Expand Down
6 changes: 3 additions & 3 deletions plugins/system/helixultimate/fields/helixlayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getInput()

$helix_layout_path = JPATH_SITE . '/plugins/system/helixultimate/layout/';

$json = json_decode($this->value);
$json = json_decode($this->value ?? "");

if (!empty($json))
{
Expand All @@ -54,8 +54,8 @@ public function getInput()
{
// $layout_file = File::read(JPATH_SITE . '/templates/' . $style->template . '/options.json');
$layout_file = file_get_contents(JPATH_SITE . '/templates/' . $style->template . '/options.json');
$value = json_decode($layout_file);
$rows = json_decode($value->layout);
$value = json_decode($layout_file ?? "");
$rows = json_decode($value->layout ?? "");
}

$html = $this->generateLayout($helix_layout_path, $rows);
Expand Down
2 changes: 1 addition & 1 deletion plugins/system/helixultimate/fields/helixmegamenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getInput()
public function getMegaSettings()
{
$mega_menu_path = JPATH_SITE . '/plugins/system/helixultimate/fields/';
$menu_data = json_decode($this->value);
$menu_data = json_decode($this->value ?? "");
$menu_item = $this->form->getData()->toObject();

ob_start();
Expand Down
6 changes: 3 additions & 3 deletions plugins/system/helixultimate/fields/helixpresets.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ private function generateFieldFromParamsData($json, $value)

if (\is_string($json) && strlen($json) > 0)
{
$json = json_decode($json);
$json = json_decode($json ?? "");
}

$preset = json_decode($value);
$preset = json_decode($value ?? "");

foreach ($json as $name => $child)
{
Expand Down Expand Up @@ -200,7 +200,7 @@ private function generateFieldFromXmlData($children, $value)
'data' => array()
);

$preset = json_decode($value);
$preset = json_decode($value ?? "");

$class = '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
</div>
<?php endif; ?>
<div class="input-group hu-j4-media">
<input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" readonly="readonly" <?php echo $attr; ?>>
<input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value ?? "", ENT_COMPAT, 'UTF-8'); ?>" readonly="readonly" <?php echo $attr; ?>>
<?php if ($disabled != true) : ?>
<button type="button" class="btn btn-success button-select"><?php echo Text::_('JLIB_FORM_BUTTON_SELECT'); ?></button>
<button type="button" class="btn btn-danger button-clear"><span class="icon-times" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('JLIB_FORM_BUTTON_CLEAR'); ?></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
}

echo ' <input type="text" name="' . $name . '" id="' . $id . '" value="'
. htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '" readonly="readonly"' . $attr . ' data-basepath="'
. htmlspecialchars($value ?? "", ENT_COMPAT, 'UTF-8') . '" readonly="readonly"' . $attr . ' data-basepath="'
. Uri::root() . '"/>';

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function getInput($key, $attr)

if (!empty($value) && \is_string($value))
{
$value = json_decode($value, true);
$value = json_decode($value ?? "", true);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/system/helixultimate/layouts/form/field/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
}

echo ' <input type="text" name="' . $name . '" id="' . $id . '" value="'
. htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '" readonly="readonly"' . $attr . ' data-basepath="'
. htmlspecialchars($value ?? "", ENT_COMPAT, 'UTF-8') . '" readonly="readonly"' . $attr . ' data-basepath="'
. Uri::root() . '"/>';

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
<?php echo HTMLHelper::_(
'image',
$this->item->image,
htmlspecialchars($this->item->name, ENT_QUOTES, 'UTF-8'),
htmlspecialchars($this->item->name ?? "", ENT_QUOTES, 'UTF-8'),
array('itemprop' => 'image')
); ?>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ul class="list-unstyled">
<?php foreach ($this->item->articles as $article) : ?>
<li>
<?php echo HTMLHelper::_('link', Route::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
<?php echo HTMLHelper::_('link', Route::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title ?? "", ENT_COMPAT, 'UTF-8')); ?>
</li>
<?php endforeach; ?>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@

// Create shortcuts to some parameters.
$params = $this->item->params;
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);
$images = json_decode($this->item->images ?? "");
$urls = json_decode($this->item->urls ?? "");
$canEdit = $params->get('access-edit');
$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
$user = Factory::getUser();
$info = $params->get('info_block_position', 0);
$page_header_tag = 'h1';
$attribs = json_decode($this->item->attribs);
$attribs = json_decode($this->item->attribs ?? "");
$article_format = (isset($attribs->helix_ultimate_article_format) && $attribs->helix_ultimate_article_format) ? $attribs->helix_ultimate_article_format : 'standard';

// Check if associations are implemented. If they are, define the parameter.
Expand Down Expand Up @@ -179,7 +179,7 @@
<?php $link->setVar('return', base64_encode(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language))); ?>
<p class="readmore">
<a href="<?php echo $link; ?>" class="register">
<?php $attribs = json_decode($this->item->attribs); ?>
<?php $attribs = json_decode($this->item->attribs ?? ""); ?>
<?php
if ($attribs->alternative_readmore == null) :
echo Text::_('COM_CONTENT_REGISTER_TO_READ_MORE');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Joomla\CMS\HTML\HTMLHelper;

// Create shortcut
$urls = json_decode($this->item->urls);
$urls = json_decode($this->item->urls ?? "");

// Create shortcuts to some parameters.
$params = $this->item->params;
Expand Down Expand Up @@ -49,27 +49,27 @@
{
case 1:
// Open in a new window
echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" target="_blank" rel="nofollow noopener noreferrer">' .
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . '</a>';
echo '<a href="' . htmlspecialchars($link ?? "", ENT_COMPAT, 'UTF-8') . '" target="_blank" rel="nofollow noopener noreferrer">' .
htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . '</a>';
break;

case 2:
// Open in a popup window
$attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600';
echo "<a href=\"" . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . "\" onclick=\"window.open(this.href, 'targetWindow', '" . $attribs . "'); return false;\" rel=\"noopener noreferrer\">" .
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . '</a>';
echo "<a href=\"" . htmlspecialchars($link ?? "", ENT_COMPAT, 'UTF-8') . "\" onclick=\"window.open(this.href, 'targetWindow', '" . $attribs . "'); return false;\" rel=\"noopener noreferrer\">" .
htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . '</a>';
break;
case 3:
// Open in a modal window
HTMLHelper::_('behavior.modal', 'a.modal');
echo '<a class="modal" href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" rel="{handler: \'iframe\', size: {x:600, y:600}} noopener noreferrer">' .
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' </a>';
echo '<a class="modal" href="' . htmlspecialchars($link ?? "", ENT_COMPAT, 'UTF-8') . '" rel="{handler: \'iframe\', size: {x:600, y:600}} noopener noreferrer">' .
htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . ' </a>';
break;

default:
// Open in parent window
echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" rel="nofollow">' .
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' </a>';
echo '<a href="' . htmlspecialchars($link ?? "", ENT_COMPAT, 'UTF-8') . '" rel="nofollow">' .
htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . ' </a>';
break;
}
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<?php if ($beforeDisplayContent || $afterDisplayContent || $this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
<div class="category-desc clearfix">
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
<img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($this->category->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8'); ?>">
<img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($this->category->getParams()->get('image_alt') ?? "", ENT_COMPAT, 'UTF-8'); ?>">
<?php endif; ?>
<?php echo $beforeDisplayContent; ?>
<?php if ($this->params->get('show_description') && $this->category->description) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

// Create a shortcut for params.
$params = $this->item->params;
$attribs = json_decode($this->item->attribs);
$attribs = json_decode($this->item->attribs ?? "");
HTMLHelper::addIncludePath(JPATH_COMPONENT . '/helpers/html');
$canEdit = $this->item->params->get('access-edit');
$info = $params->get('info_block_position', 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
?>

<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString() ?? ""); ?>" method="post" name="adminForm" id="adminForm">

<?php if ($this->params->get('filter_field') !== 'hide' || $this->params->get('show_pagination_limit')) : ?>
<div class="d-flex justify-content-between align-items-centerd-flex mb-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Create a shortcut for params.
$params = &$this->item->params;
$images = json_decode($this->item->images);
$images = json_decode($this->item->images ?? "");
$canEdit = $this->item->params->get('access-edit');
$info = $this->item->params->get('info_block_position', 0);
$article_format = (isset($attribs->helix_ultimate_article_format) && $attribs->helix_ultimate_article_format) ? $attribs->helix_ultimate_article_format : 'standard';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$params = $this->state->get('params');

//Blog Options
$attribs = json_decode($this->item->attribs);
$attribs = json_decode($this->item->attribs ?? "");

$this->form->setValue('helix_ultimate_image', 'attribs', !empty($attribs->helix_ultimate_image) ? $attribs->helix_ultimate_image : '');
$this->form->setValue('helix_ultimate_image_alt_txt', 'attribs', !empty($attribs->helix_ultimate_image_alt_txt) ? $attribs->helix_ultimate_image_alt_txt : '');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
$imageAlt = $this->result->title;
}
?>
<figure class="<?php echo htmlspecialchars($imageClass, ENT_COMPAT, 'UTF-8'); ?> result__image">
<figure class="<?php echo htmlspecialchars($imageClass ?? "", ENT_COMPAT, 'UTF-8'); ?> result__image">
<?php if ($this->params->get('link_image') && $this->result->route) : ?>
<a href="<?php echo Route::_($this->result->route); ?>">
<?php echo HTMLHelper::_('image', $imageUrl, $imageAlt, $extraAttr); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
<?php // We only show a tag description if there is a single tag. ?>
<?php if (count($this->item) === 1 && ($this->params->get('tag_list_show_tag_image', 1) || $this->params->get('tag_list_show_tag_description', 1))) : ?>
<div class="category-desc">
<?php $images = json_decode($this->item[0]->images); ?>
<?php $images = json_decode($this->item[0]->images ?? ""); ?>
<?php if ($this->params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?>
<img src="<?php echo htmlspecialchars($images->image_fulltext, ENT_COMPAT, 'UTF-8'); ?>"
alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>">
<img src="<?php echo htmlspecialchars($images->image_fulltext ?? "", ENT_COMPAT, 'UTF-8'); ?>"
alt="<?php echo htmlspecialchars($images->image_fulltext_alt ?? ""); ?>">
<?php endif; ?>
<?php if ($this->params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?>
<?php echo HTMLHelper::_('content.prepare', $this->item[0]->description, '', 'com_tags.tag'); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
");
?>
<div class="mb-4">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString() ?? ""); ?>" method="post" name="adminForm" id="adminForm">
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<?php if ($this->params->get('filter_field')) : ?>
<div class="btn-group">
Expand Down Expand Up @@ -92,11 +92,11 @@ class="inputbox" onchange="document.adminForm.submit();"
<?php endif; ?>
<?php // Content is generated by content plugin event "onContentAfterTitle" ?>
<?php echo $item->event->afterDisplayTitle; ?>
<?php $images = json_decode($item->core_images); ?>
<?php $images = json_decode($item->core_images ?? ""); ?>
<?php if ($this->params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) : ?>
<a href="<?php echo Route::_($item->link); ?>">
<img src="<?php echo htmlspecialchars($images->image_intro); ?>"
alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>">
<img src="<?php echo htmlspecialchars($images->image_intro ?? ""); ?>"
alt="<?php echo htmlspecialchars($images->image_intro_alt ?? ""); ?>">
</a>
<?php endif; ?>
<?php if ($this->params->get('tag_list_show_item_description', 1)) : ?>
Expand Down
4 changes: 2 additions & 2 deletions plugins/system/helixultimate/overrides/com_tags/tag/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<?php // We only show a tag description if there is a single tag. ?>
<?php if (count($this->item) === 1 && ($this->params->get('tag_list_show_tag_image', 1) || $this->params->get('tag_list_show_tag_description', 1))) : ?>
<div class="category-desc">
<?php $images = json_decode($this->item[0]->images); ?>
<?php $images = json_decode($this->item[0]->images ?? ""); ?>
<?php if ($this->params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?>
<img src="<?php echo htmlspecialchars($images->image_fulltext, ENT_COMPAT, 'UTF-8'); ?>">
<img src="<?php echo htmlspecialchars($images->image_fulltext ?? "", ENT_COMPAT, 'UTF-8'); ?>">
<?php endif; ?>
<?php if ($this->params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?>
<?php echo HTMLHelper::_('content.prepare', $this->item[0]->description, '', 'com_tags.tag'); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

?>
<div class="mb-4">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString() ?? ""); ?>" method="post" name="adminForm" id="adminForm">
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<fieldset class="filters d-flex justify-content-between mb-3">
<?php if ($this->params->get('filter_field')) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<?php if ($this->params->get('all_tags_show_description_image') && !empty($descriptionImage)) : ?>
<?php $alt = empty($this->params->get('all_tags_description_image_alt')) && empty($this->params->get('all_tags_description_image_alt_empty'))
? ''
: 'alt="' . htmlspecialchars($this->params->get('all_tags_description_image_alt'), ENT_COMPAT, 'UTF-8') . '"'; ?>
: 'alt="' . htmlspecialchars($this->params->get('all_tags_description_image_alt') ?? "", ENT_COMPAT, 'UTF-8') . '"'; ?>
<div>
<img src="<?php echo htmlspecialchars($descriptionImage, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $alt; ?>>
<img src="<?php echo htmlspecialchars($descriptionImage ?? "", ENT_QUOTES, 'UTF-8'); ?>" <?php echo $alt; ?>>
</div>
<?php endif; ?>
<?php if (!empty($description)) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

?>
<div class="mb-4">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString() ?? ""); ?>" method="post" name="adminForm" id="adminForm">
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<fieldset class="filters d-flex justify-content-between mb-3">
<?php if ($this->params->get('filter_field')) : ?>
Expand Down Expand Up @@ -119,17 +119,17 @@ class="inputbox" onchange="document.adminForm.submit();"
<?php endif; ?>

<?php if ($this->params->get('all_tags_show_tag_image') && !empty($item->images)) : ?>
<?php $images = json_decode($item->images); ?>
<?php $images = json_decode($item->images ?? ""); ?>
<span class="tag-body">
<?php if (!empty($images->image_intro)) : ?>
<?php $imgfloat = empty($images->float_intro) ? $this->params->get('float_intro') : $images->float_intro; ?>
<div class="float-<?php echo htmlspecialchars($imgfloat); ?> item-image">
<div class="float-<?php echo htmlspecialchars($imgfloat ?? ""); ?> item-image">
<img
<?php if ($images->image_intro_caption) : ?>
<?php echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; ?>
<?php echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption ?? "") . '"'; ?>
<?php endif; ?>
src="<?php echo $images->image_intro; ?>"
alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>">
alt="<?php echo htmlspecialchars($images->image_intro_alt ?? ""); ?>">
</div>
<?php endif; ?>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</li>
<li class="list-group-item">
<strong><?php echo Text::_('COM_USERS_PROFILE_USERNAME_LABEL'); ?></strong>:
<?php echo htmlspecialchars($this->data->username, ENT_COMPAT, 'UTF-8'); ?>
<?php echo htmlspecialchars($this->data->username ?? "", ENT_COMPAT, 'UTF-8'); ?>
</li>
<li class="list-group-item">
<strong><?php echo Text::_('COM_USERS_PROFILE_REGISTERED_DATE_LABEL'); ?></strong>:
Expand Down
Loading

0 comments on commit 8d3439c

Please sign in to comment.