BBcode being modified

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
water01
Registered User
Posts: 119
Joined: Tue Dec 07, 2010 11:54 am

BBcode being modified

Post by water01 » Thu Jun 08, 2017 9:07 pm

I have a BBcode with the HTML replacement part stating

Code: Select all

<a href="http://www.sparepartstore24.co.uk/" target="_blank" title="spareparts24 - Click here to enter website"><img src="http://www.ukpassats.co.uk/images/spareparts.gif" alt="Sparepartstore24" border="0" /></a>
but when the page is generated in phpBB additional code is added

Code: Select all

<a href="http://www.sparepartstore24.co.uk/" target="_blank" title="spareparts24 - Click here to enter website" rel="noreferrer"><img src="http://www.ukpassats.co.uk/images/spareparts.gif" alt="Sparepartstore24" border="0"></a>	
specifically

Code: Select all

rel="noreferrer"
which stops our sponser getting information on who referenced their site from our site.

Is there any reason for this and how do I stop it?

User avatar
JoshyPHP
Code Contributor
Posts: 1058
Joined: Mon Jul 11, 2011 12:28 am

Re: BBcode being modified

Post by JoshyPHP » Thu Jun 08, 2017 11:29 pm

This is related to the target="_blank" exploit. Add rel="noopener" to the list and it should avoid adding noreferrer.
I wrote the thing that does BBCodes in 3.2.

Post Reply

Return to “[3.2.x] Support Forum”