Skip to content

Instantly share code, notes, and snippets.

@phpdude
Created October 23, 2015 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save phpdude/bc61e246e9e2c5034c62 to your computer and use it in GitHub Desktop.
Save phpdude/bc61e246e9e2c5034c62 to your computer and use it in GitHub Desktop.
shitfilter.php
<?php
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
header('X-Hiring-Exercise-Answer: ' . $_ENV['HIRING_EXERCISE_ANSWER']);
exit;
}
header('Content-type: text/plain');
readfile(__FILE__);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment