Skip to content

an unnecessary "&quote;" destroyed the bbc url and iurl code in custom warning templates #7674

@The4Apes

Description

@The4Apes

Description

If i create or modify a custom warning template and save it, the url oder iurl code like [url=http://simplemachines.org]text[/url] will be changed to [url="http://simplemachines.org"]text[/url]
" will be added when saving the code, the modified code is stored in database and also used in the message for the member, when you warning a member.
The link in the message that the member receives has this format <a href="http://&amp;quot;http://simplemachines.org&amp;quot;" class="bbc_link" target="_blank" rel="noopener">text</a> and will not work.
I think the cause is to find in Subs-Post.php, but i don't know where exactly.

Steps to reproduce

  1. create a custom warning template with url like [url=http://simplemachines.org]text[/url]
  2. save it
  3. open it again to edit, or warning a member and use this template
  4. check the message the member received

Environment (complete as necessary)

  • Version/Git revision: 2.1.13

Additional information/references

Workaround: Delete the &quot; entities from the custom warning templates directly in database table "log_comments"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions