darkfreaks Posted September 13, 2007 Share Posted September 13, 2007 ok so i made it so it strips out all html and php code using strip_tags and have htmlspecialchars so it will print html. also i have a function in place the checks and strips the comment variable of all XSS patterns in place. however im still getting posts like www.site.com how would i make it so you cannot even copy and paste links? even without doing it in html? i know you would have to do a preg match pattern but i couldnt find any patterns on google. Quote Link to comment https://forums.phpfreaks.com/topic/69234-solved-need-help-with-creatinng-a-function-for-a-guestbook/ Share on other sites More sharing options...
darkfreaks Posted September 13, 2007 Author Share Posted September 13, 2007 SOLVED! i used string replace so when you type www.mysite.com instead of posting www.mysite.com it will poste mysite LOL. Quote Link to comment https://forums.phpfreaks.com/topic/69234-solved-need-help-with-creatinng-a-function-for-a-guestbook/#findComment-347946 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.