XF 2.3 BB Code Media Site changes {$id}: https://www to https%3A%2F%2Fwww

Marcus

Well-known member
I enter this in a post:
My _media_site_embed is <script>... {$id} ... </script>

xenForo however changes it to <script> ... https%3A%2F%2Fwww.domain.com ... </script>
Expected is <script> ... https://www.domain.com ... </script>
 
Thanks for the quick reply. Here is the BB Code Media Site:

1713809666080.webp
And here the post:
1713808544106.webp

The post is then rendered as this:

1713808308083.webp

I guess it is done maybe by the editor. I write this as an admin though.
 

Attachments

  • 1713808280692.webp
    1713808280692.webp
    27.7 KB · Views: 8
Last edited:
A couple of things ...

1. You can't use a media bb code site for that - use a regular bb code.

2. Under no circumstances have a bb code which allows any content between script tags - it needs to be sanitised.
 
Back
Top Bottom