This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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( |