Sometimes, you just need to submit a PDF that looks like it's been printed and scanned, but you can't be bothered to print it and scan it.
Here's a quick workaround to achieve the same effect.
| diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc | |
| index 06acf93..d5963a0 100644 | |
| --- a/includes/bootstrap.inc | |
| +++ b/includes/bootstrap.inc | |
| @@ -2778,6 +2778,11 @@ function _drupal_bootstrap_variables() { | |
| unset($_GET['destination']); | |
| unset($_REQUEST['destination']); | |
| } | |
| + // Use the DrupalRequestSanitizer to ensure that the destination's query | |
| + // parameters are not dangerous. |
I hereby claim:
To claim this, I am signing this object:
| ruby_block "Run apache as vagrant user" do | |
| block do | |
| fe = Chef::Util::FileEdit.new("/etc/apache2/envvars") | |
| fe.search_file_replace(/www-data/, 'vagrant') | |
| fe.write_file | |
| end | |
| only_if "grep 'www-data' /etc/apache2/envvars" | |
| notifies :restart, 'service[apache2]', :delayed | |
| end |