TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 176
  • Total: 176

Shoutbox + Avea Media = spam related issue

Started by la muerte, January 11, 2012, 06:52:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


IchBin

Are links still getting processed by Aeva even without the http:// in them? Using your file on my site removed any http:// posted in the shoutbox. Maybe we could do this another way by stripping the http before we insert it into the database.

Open tp-files/tp-modules/TPShout/Sources/TPShout.php and find this line:
$oldshout = strip_tags(substr($_POST['tp_shout'], 0, 300));

Replace with this:
$oldshout = strip_tags(str_replace('http://', '', substr($_POST['tp_shout'], 0, 300)));

See if that works.

la muerte

That didn't work either, but I noticed it still parses if theres www. in front of it.
By removing that too it works fine so I changed to this:

$oldshout = strip_tags(str_replace('http://www.', '', substr($_POST['tp_shout'], 0, 300)));

And it works flawlessly :)

Thanks very much for your support :)

This website is proudly hosted on Crocweb Cloud Website Hosting.