mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Using real server signature on status call
On Apache platform the server signature can be replaced using the SecServerSignature directive. Status call was using the signature informed by this directive instead of using the original one. As reported at #702.
This commit is contained in:
@@ -349,11 +349,7 @@ int DSOLOCAL msc_beacon_string (char *beacon_string, int beacon_string_max_len)
|
||||
#endif
|
||||
libxml = LIBXML_DOTTED_VERSION;
|
||||
modsec = MODSEC_VERSION;
|
||||
#ifdef WIN32
|
||||
apache = "IIS";
|
||||
#else
|
||||
apache = apache_get_server_version();
|
||||
#endif
|
||||
apache = real_server_signature;
|
||||
|
||||
/* 6 represents: strlen("(null)") */
|
||||
beacon_string_len = (modsec ? strlen(modsec) : 6) +
|
||||
|
Reference in New Issue
Block a user