[Forum maintenance] clean up "onclick ... nofollow" junk?

Little or nothing to do with distillation.

Moderator: Site Moderator

Post Reply
User avatar
Moth
Novice
Posts: 5
Joined: Wed Dec 30, 2020 10:57 am
Location: Georgia, USA

[Forum maintenance] clean up "onclick ... nofollow" junk?

Post by Moth »

Hi! I'm looking for site maintenance stewards who might be interested in a minor cleanup task. I see many posts in this forum with the following junk after a link:
" onclick="window.open(this.href);return false;" rel="nofollow
. Here's one example; typing
"onclick" "nofollow"
into the Google Search box turns up over 10,000 similar results.

I'm sure this is the result of a forum upgrade or some other site reconfiguration at some point. It would be nice to fix it. An SQL
UPDATE
command with a string
REPLACE
would do the trick, but that requires database access to accomplish. I'm willing to advise if someone with said access wants to give it a shot.

Regards,

Moth
User avatar
Moth
Novice
Posts: 5
Joined: Wed Dec 30, 2020 10:57 am
Location: Georgia, USA

Re: [Forum maintenance] clean up "onclick ... nofollow" junk?

Post by Moth »

I did some more searching, and apparently this is a known problem due to an upgrade of phpBB. Here is a post from the phpBB support forum with a fix: https://www.phpbb.com/community/viewtop ... #p15355156

That fix is in the form of two PHP scripts that can be uploaded to the server and then run. It's less efficient than just running two
UPDATE
commands directly against the database, but may be easier to accomplish depending on who has what kind of access to the server.

Regards,

Moth
Post Reply