From 6f1ff7c67da4bae4ee397fb2b154a42eb1a64b29 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 2 Dec 2006 11:32:46 +1300 Subject: [PATCH] Normalise the Server, X-Powered-By and X-RSCDS-Version headers. --- testing/normalise_result | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/testing/normalise_result b/testing/normalise_result index 4033fb08..4b5b0af2 100755 --- a/testing/normalise_result +++ b/testing/normalise_result @@ -12,5 +12,17 @@ while( ) { $_ = "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; }