Skip to content

Instantly share code, notes, and snippets.

@raulfraile raulfraile/gist:5822080
Last active Dec 18, 2015

Embed
What would you like to do?
<?php
// 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.