Skip to content

Instantly share code, notes, and snippets.

View andriyun's full-sized avatar
💭
drupaling

Andriyun andriyun

💭
drupaling
View GitHub Profile
diff --git a/core/lib/Drupal/Core/Security/RequestSanitizer.php b/core/lib/Drupal/Core/Security/RequestSanitizer.php
new file mode 100644
index 0000000..8ba17b9
--- /dev/null
+++ b/core/lib/Drupal/Core/Security/RequestSanitizer.php
@@ -0,0 +1,99 @@
+<?php
+
+namespace Drupal\Core\Security;
+
@andriyun
andriyun / template.php
Last active August 29, 2015 14:06 — forked from mrcgrtz/template.php
<?php
/**
* Override or insert variables into the HTML head.
*
* @param $head_elements
* An array of variables to pass to the HTML head.
*/
function MYTHEME_html_head_alter(&$head_elements) {
// remove unneeded metatags
$remove = array(