MyBB-Plugins Forums

Full Version: Blocking Certain Characters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am wondering how to prevent people from searching using certain/special characters. For example, I don't want people to be able to search for private messages containing the following characters: < > / '

When a person attempts how to search using these characters it would just say something along the lines of "Invalid characters used in search".

I'm doing this because people can create a mysql error by searching private messages using certain 'phrases'.

Seems to cause the error on all mybb powered forums.

Would I be able to do this by just making a few changes to the private.php/search.php file?
Wait for 1.8, you won't have such issues Smile
(08-19-2014, 07:15 AM)Pirata Nervo Wrote: [ -> ]Wait for 1.8, you won't have such issues Smile

I've heard that and I look forward to it.

When is 1.8 being released? Big Grin
Hopefully this week Smile
(08-19-2014, 09:03 PM)Pirata Nervo Wrote: [ -> ]Hopefully this week Smile

Wow, awesome! Didn't expect it to be so soon.