Page 1 of 1

BBcode being modified

Posted: Thu Jun 08, 2017 9:07 pm
by water01
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?

Re: BBcode being modified

Posted: Thu Jun 08, 2017 11:29 pm
by JoshyPHP
This is related to the target="_blank" exploit. Add rel="noopener" to the list and it should avoid adding noreferrer.