| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The Emoji plugin renders sequences of hexadecimal digits between colons such as ":123c:" as emoji images of the corresponding codepoint. Such sequences commonly appear as segments of IPv6 addresses, mangling the address and causing failing image requests to the emoji CDN which slow down the page for the reader. Add a filter to the EMOJI tag that rejects these shortcodes so they remain plain text. Emoji shortnames such as ":joy:" and Unicode emoji are unaffected. The ":1234:" shortname is rejected as well, as it cannot be told apart from a segment of an IPv6 address. PHPBB-17655
|
The attempt to merge branch 3.3.x into master has completed after considering the changes in this PR.
A separate PR will be needed to merge 3.3.x into master. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist:
Tracker ticket:
https://tracker.phpbb.com/browse/PHPBB-17655
The Emoji plugin renders sequences of hexadecimal digits between colons such as :123c: as emoji images of the corresponding codepoint. Such sequences commonly appear as segments of IPv6 addresses, so posting an address like 2a09:bac3:616e:123c::1d1:f0 mangles the text and generates failing image requests to the emoji CDN, which slow down the page for the reader.
This adds a filter to the EMOJI tag that rejects these raw codepoint shortcodes so they remain plain text. Emoji shortnames such as :joy:, Unicode emoji and regular smilies are unaffected, verified by new test cases. The :1234: shortname is rejected as well since it cannot be told apart from a segment of an IPv6 address.