Contact Admin

Some ipv6 addresses not displayed correctly - Contact Admin

Some ipv6 addresses not displayed correctly

by v12mike » Mon May 27, 2019 10:22 am

I just noticed that on the viewtopic page of a topic created by this extension, phpBB is rendering some ipv6 addresses with invalid emojis replacing some of the address characters.

For example, the address: 2a02:c7f:227e:e300:41cc:687:1742:4bc2 is displayed with the html:

Code: Select all

<strong class="text-strong">IP:</strong> 2a02:c7f<img alt=":227e:" class="emoji smilies" draggable="false" src="//twemoji.maxcdn.com/2/svg/227e.svg">e300:41cc:687<img alt=":1742:" class="emoji smilies" draggable="false" src="//twemoji.maxcdn.com/2/svg/1742.svg">4bc2<br>
Whereas an address which does not show the problem: 2001:bb6:a33:c758:8c7b:64bf:1013:120a produces the html:

Code: Select all

<strong class="text-strong">IP:</strong> 2001:bb6:a33:c758:8c7b:64bf:1013:120a<br>
I am guessing (without doing any real investigation) that ipv6 addresses need to be escaped before being added to the post.

[edit]
I see that the addresses don't display correctly here either, I suppose because I have not escaped them...
v12mike
Registered User
Posts: 347
Joined: Thu Jul 09, 2015 5:03 pm
Contact: