Mercurial > hg > nginx-quic
annotate src/http/modules/perl/Makefile.PL @ 8531:41f4bd4c51f1
Disabled control characters and space in header names.
Control characters (0x00-0x1f, 0x7f), space, and colon were never allowed in
header names. The only somewhat valid use is header continuation which nginx
never supported and which is explicitly obsolete by RFC 7230.
Previously, such headers were considered invalid and were ignored by default
(as per ignore_invalid_headers directive). With this change, such headers
are unconditionally rejected.
It is expected to make nginx more resilient to various attacks, in particular,
with ignore_invalid_headers switched off (which is inherently unsecure, though
nevertheless sometimes used in the wild).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 28 Jun 2021 18:01:18 +0300 |
parents | 0d2956dfc4e6 |
children |
rev | line source |
---|---|
599 | 1 |
2 # Copyright (C) Igor Sysoev | |
4412 | 3 # Copyright (C) Nginx, Inc. |
599 | 4 |
5 use 5.006001; | |
6 use ExtUtils::MakeMaker; | |
7 | |
8 WriteMakefile( | |
9 NAME => 'nginx', | |
10 VERSION_FROM => 'nginx.pm', # finds $VERSION | |
11 PREREQ_PM => {}, # e.g., Module::Name => 1.1 | |
12 | |
13 ABSTRACT_FROM => 'nginx.pm', # retrieve abstract from module | |
14 AUTHOR => 'Igor Sysoev', | |
15 | |
681 | 16 CCFLAGS => "$ENV{NGX_PM_CFLAGS}", |
619 | 17 OPTIMIZE => '-O', |
599 | 18 |
6700
0d2956dfc4e6
Perl: pass additional linker options to perl module.
Konstantin Pavlov <thresh@nginx.com>
parents:
5180
diff
changeset
|
19 LDDLFLAGS => "$ENV{NGX_PM_LDFLAGS}", |
0d2956dfc4e6
Perl: pass additional linker options to perl module.
Konstantin Pavlov <thresh@nginx.com>
parents:
5180
diff
changeset
|
20 |
4945
ae3ebf5ac8cd
Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents:
4473
diff
changeset
|
21 INC => join(" ", map { |
ae3ebf5ac8cd
Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents:
4473
diff
changeset
|
22 m#^/# ? "-I $_" : "-I ../../../../../$_" |
ae3ebf5ac8cd
Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents:
4473
diff
changeset
|
23 } (split /\s+/, $ENV{NGX_INCS})), |
599 | 24 |
25 depend => { | |
5168
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
26 'nginx.c' => join(" ", map { |
5180
2db6bdcaedc0
Configure: fixed perl Makefile generation (ticket #334).
Maxim Dounin <mdounin@mdounin.ru>
parents:
5168
diff
changeset
|
27 m#^/# ? $_ : "../../../../../$_" |
5168
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
28 } (split(/\s+/, $ENV{NGX_DEPS}), |
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
29 "src/http/modules/perl/ngx_http_perl_module.h")) |
599 | 30 }, |
31 | |
32 PM => { | |
33 'nginx.pm' => '$(INST_LIBDIR)/nginx.pm' | |
34 } | |
35 ); |