Skip to content

Instantly share code, notes, and snippets.



Last active Dec 18, 2015
What would you like to do?
// validate input (don't allow jokes about java)
$content = $request->request->get('content');
if (stripos($content, 'java') !== false) {
throw new BadRequestHttpException('Java jokes are not allowed');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.