mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Normalise the Server, X-Powered-By and X-RSCDS-Version headers.
This commit is contained in:
parent
974925b76f
commit
6f1ff7c67d
@ -12,5 +12,17 @@ while( <STDIN> ) {
|
||||
$_ = "Date: Dow, 01 Jan 2000 00:00:00 GMT\r\n";
|
||||
};
|
||||
|
||||
/^Server: Apache\/[0-9.]+/ && do {
|
||||
$_ = "";
|
||||
};
|
||||
|
||||
/^X-Powered-By: PHP\/[0-9.]+/ && do {
|
||||
$_ = "";
|
||||
};
|
||||
|
||||
/^X-RSCDS-Version: RSCDS\/[0-9.]+\.[0-9.]+\.[0-9.]+; DB\/[0-9.]+\.[0-9.]+\.[0-9.]+/ && do {
|
||||
$_ = "";
|
||||
};
|
||||
|
||||
print;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user