mirror of https://github.com/joomla/joomla-cms.git
12 lines
509 B
Diff
12 lines
509 B
Diff
--- a/src/HeaderSecurity.php
|
|
+++ b/src/HeaderSecurity.php
|
|
@@ -155,7 +155,7 @@ public static function assertValidName($name): void
|
|
is_object($name) ? $name::class : gettype($name)
|
|
));
|
|
}
|
|
- if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $name)) {
|
|
+ if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $name)) {
|
|
throw new Exception\InvalidArgumentException(sprintf(
|
|
'"%s" is not valid header name',
|
|
$name
|