replace URLs in message.
Posted 10 September 2006 - 06:33 PM
I want to parse $msg and replace any URLs with ####### that don't originate from $mydomain.
If you can help you'll get my eternal love n devotion
Posted 10 September 2006 - 07:21 PM
What I wat to do is:-
This is a private message from 'test user'.
Have a look at my profile @ http://www.thisdomain.com/myprofile
But I want to send you this spam link http://www.any-other-website.com
I want http://www.thisdomain.com/myprofile to be let thru (because it's on the same domain)
http://www.any-other-website.com to be blanked out.
Posted 11 September 2006 - 05:53 AM
Posted 12 September 2006 - 12:38 AM
still working on this. I know this is possible - something similar is used in phpbb when tags are automatically put round links. Could use the same principle to identify and check links before choosing to blank out urls or not.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users