-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[next batch] Always use htmlspecialchars($str, ENT_COMPAT, 'UTF-8') #10424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
dc959f3
a0bcc99
666c724
61ef454
8a3b405
c598167
291bcc3
6cb211d
cf50bd7
deb5bf9
bd5fae3
a161d4f
20d5132
c642195
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,13 @@ | |
| <?php echo JText::_('COM_USERS_PROFILE_NAME_LABEL'); ?> | ||
| </dt> | ||
| <dd> | ||
| <?php echo $this->data->name; ?> | ||
| <?php echo htmlspecialchars($this->data->name, ENT_COMPAT, 'UTF-8'); ?> | ||
|
||
| </dd> | ||
| <dt> | ||
| <?php echo JText::_('COM_USERS_PROFILE_USERNAME_LABEL'); ?> | ||
| </dt> | ||
| <dd> | ||
| <?php echo htmlspecialchars($this->data->username); ?> | ||
| <?php echo htmlspecialchars($this->data->username, ENT_COMPAT, 'UTF-8'); ?> | ||
| </dd> | ||
| <dt> | ||
| <?php echo JText::_('COM_USERS_PROFILE_REGISTERED_DATE_LABEL'); ?> | ||
|
|
@@ -38,17 +38,15 @@ | |
| <?php echo JText::_('COM_USERS_PROFILE_LAST_VISITED_DATE_LABEL'); ?> | ||
| </dt> | ||
|
|
||
| <?php if ($this->data->lastvisitDate != '0000-00-00 00:00:00'){?> | ||
| <?php if ($this->data->lastvisitDate != '0000-00-00 00:00:00') : ?> | ||
| <dd> | ||
| <?php echo JHtml::_('date', $this->data->lastvisitDate); ?> | ||
| </dd> | ||
| <?php } | ||
| else | ||
| {?> | ||
| <?php else : ?> | ||
| <dd> | ||
| <?php echo JText::_('COM_USERS_PROFILE_NEVER_VISITED'); ?> | ||
| </dd> | ||
| <?php } ?> | ||
| <?php endif; ?> | ||
|
|
||
| </dl> | ||
| </fieldset> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ | |
| '\\1 jmoddiv" data-jmodediturl="' . $editUrl . '" data-target="' . $target . '" data-jmodtip="' | ||
| . JHtml::tooltipText( | ||
| JText::_('JLIB_HTML_EDIT_MODULE'), | ||
| htmlspecialchars($mod->title) . '<br />' . sprintf(JText::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position)), | ||
| htmlspecialchars($mod->title, ENT_COMPAT, 'UTF-8') . '<br />' . sprintf(JText::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position)), | ||
|
||
| 0 | ||
| ) | ||
| . '"' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,4 +49,4 @@ | |
| $attributes['onclick'] = "window.open(this.href, 'targetWindow', '" . $options . "'); return false;"; | ||
| } | ||
|
|
||
| echo JHtml::_('link', JFilterOutput::ampReplace(htmlspecialchars($item->flink)), $linktype, $attributes); | ||
| echo JHtml::_('link', JFilterOutput::ampReplace(htmlspecialchars($item->flink), ENT_COMPAT, 'UTF-8'), $linktype, $attributes); | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this in the right place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok thanks