diff options
Diffstat (limited to 'server/core.c')
-rw-r--r-- | server/core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/core.c b/server/core.c index 1d49f656ae..72925533a1 100644 --- a/server/core.c +++ b/server/core.c @@ -2240,12 +2240,15 @@ AP_DECLARE(const char *) ap_psignature(const char *prefix, request_rec *r) return apr_pstrcat(r->pool, prefix, "<address>" AP_SERVER_BASEVERSION " Server at <a href=\"mailto:", r->server->server_admin, "\">", - ap_get_server_name(r), "</a> Port ", sport, + ap_escape_html(r->pool, ap_get_server_name(r)), + "</a> Port ", sport, "</address>\n", NULL); } return apr_pstrcat(r->pool, prefix, "<address>" AP_SERVER_BASEVERSION - " Server at ", ap_get_server_name(r), " Port ", sport, + " Server at ", + ap_escape_html(r->pool, ap_get_server_name(r)), + " Port ", sport, "</address>\n", NULL); } |