|
|
e71654 |
diff --git a/server/core.c b/server/core.c
|
|
|
e71654 |
index cb8e463..daf76b3 100644
|
|
|
e71654 |
--- a/server/core.c
|
|
|
e71654 |
+++ b/server/core.c
|
|
|
e71654 |
@@ -3430,6 +3430,7 @@ enum server_token_type {
|
|
|
e71654 |
SrvTk_MINIMAL, /* eg: Apache/2.0.41 */
|
|
|
e71654 |
SrvTk_OS, /* eg: Apache/2.0.41 (UNIX) */
|
|
|
e71654 |
SrvTk_FULL, /* eg: Apache/2.0.41 (UNIX) PHP/4.2.2 FooBar/1.2b */
|
|
|
e71654 |
+ SrvTk_FULL_RELEASE, /* eg: Apache/2.0.41 (UNIX) (Release 32.el7) PHP/4.2.2 FooBar/1.2b */
|
|
|
e71654 |
SrvTk_PRODUCT_ONLY /* eg: Apache */
|
|
|
e71654 |
};
|
|
|
e71654 |
static enum server_token_type ap_server_tokens = SrvTk_FULL;
|
|
|
e71654 |
@@ -3506,7 +3507,10 @@ static void set_banner(apr_pool_t *pconf)
|
|
|
e71654 |
else if (ap_server_tokens == SrvTk_MAJOR) {
|
|
|
e71654 |
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MAJORVERSION);
|
|
|
e71654 |
}
|
|
|
e71654 |
- else {
|
|
|
e71654 |
+ else if (ap_server_tokens == SrvTk_FULL_RELEASE) {
|
|
|
e71654 |
+ ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ") (Release @RELEASE@)");
|
|
|
e71654 |
+ }
|
|
|
e71654 |
+ else {
|
|
|
e71654 |
ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ")");
|
|
|
e71654 |
}
|
|
|
e71654 |
|
|
|
e71654 |
@@ -3514,7 +3518,7 @@ static void set_banner(apr_pool_t *pconf)
|
|
|
e71654 |
* Lock the server_banner string if we're not displaying
|
|
|
e71654 |
* the full set of tokens
|
|
|
e71654 |
*/
|
|
|
e71654 |
- if (ap_server_tokens != SrvTk_FULL) {
|
|
|
e71654 |
+ if (ap_server_tokens != SrvTk_FULL && ap_server_tokens != SrvTk_FULL_RELEASE) {
|
|
|
e71654 |
banner_locked++;
|
|
|
e71654 |
}
|
|
|
e71654 |
server_description = AP_SERVER_BASEVERSION " (" PLATFORM ")";
|
|
|
e71654 |
@@ -3547,8 +3551,11 @@ static const char *set_serv_tokens(cmd_parms *cmd, void *dummy,
|
|
|
e71654 |
else if (!strcasecmp(arg, "Full")) {
|
|
|
e71654 |
ap_server_tokens = SrvTk_FULL;
|
|
|
e71654 |
}
|
|
|
e71654 |
+ else if (!strcasecmp(arg, "Full-Release")) {
|
|
|
e71654 |
+ ap_server_tokens = SrvTk_FULL_RELEASE;
|
|
|
e71654 |
+ }
|
|
|
e71654 |
else {
|
|
|
e71654 |
- return "ServerTokens takes 1 argument: 'Prod(uctOnly)', 'Major', 'Minor', 'Min(imal)', 'OS', or 'Full'";
|
|
|
e71654 |
+ return "ServerTokens takes 1 argument: 'Prod(uctOnly)', 'Major', 'Minor', 'Min(imal)', 'OS', 'Full' or 'Full-Release'";
|
|
|
e71654 |
}
|
|
|
e71654 |
|
|
|
e71654 |
return NULL;
|