MyBB-Plugins Forums
Blocking Certain Characters - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: Blocking Certain Characters (/Thread-Blocking-Certain-Characters)



Blocking Certain Characters - deathcrow - 08-19-2014

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?


RE: Blocking Certain Characters - Diogo Parrinha - 08-19-2014

Wait for 1.8, you won't have such issues Smile


RE: Blocking Certain Characters - deathcrow - 08-19-2014

(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


RE: Blocking Certain Characters - Diogo Parrinha - 08-19-2014

Hopefully this week Smile


RE: Blocking Certain Characters - deathcrow - 08-20-2014

(08-19-2014, 09:03 PM)Pirata Nervo Wrote: Hopefully this week Smile

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