1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-10 00:15:00 +02:00

[ticket/16496] Fix html special chars in custom BBcode help line

PHPBB3-16496
This commit is contained in:
3D-I 2020-05-26 13:34:09 +02:00
parent 13914b91df
commit 599adb3003
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@
</select> </select>
<!-- EVENT acp_posting_buttons_custom_tags_before --> <!-- EVENT acp_posting_buttons_custom_tags_before -->
<!-- BEGIN custom_tags --> <!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE|e('html_attr') }}" /> <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE }}" />
<!-- END custom_tags --> <!-- END custom_tags -->
</div> </div>
<!-- EVENT acp_posting_buttons_after --> <!-- EVENT acp_posting_buttons_after -->

View File

@ -1122,7 +1122,7 @@ function display_custom_bbcodes()
'BBCODE_ID' => $num_predefined_bbcodes + ($i * 2), 'BBCODE_ID' => $num_predefined_bbcodes + ($i * 2),
'BBCODE_TAG' => $row['bbcode_tag'], 'BBCODE_TAG' => $row['bbcode_tag'],
'BBCODE_TAG_CLEAN' => str_replace('=', '-', $row['bbcode_tag']), 'BBCODE_TAG_CLEAN' => str_replace('=', '-', $row['bbcode_tag']),
'BBCODE_HELPLINE' => htmlspecialchars_decode($row['bbcode_helpline']), 'BBCODE_HELPLINE' => $row['bbcode_helpline'],
); );
/** /**

View File

@ -96,7 +96,7 @@
<!-- EVENT posting_editor_buttons_custom_tags_before --> <!-- EVENT posting_editor_buttons_custom_tags_before -->
<!-- BEGIN custom_tags --> <!-- BEGIN custom_tags -->
<button type="button" class="button button-secondary bbcode-{custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE|e('html_attr') }}"> <button type="button" class="button button-secondary bbcode-{custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE }}">
{custom_tags.BBCODE_TAG} {custom_tags.BBCODE_TAG}
</button> </button>
<!-- END custom_tags --> <!-- END custom_tags -->