View | Details | Raw Unified | Return to bug 56395
Collapse All | Expand All

(-)server/util_script.c (-1 / +4 lines)
Lines 232-238 Link Here
232
    apr_table_addn(e, "SERVER_SOFTWARE", ap_get_server_banner());
232
    apr_table_addn(e, "SERVER_SOFTWARE", ap_get_server_banner());
233
    apr_table_addn(e, "SERVER_NAME",
233
    apr_table_addn(e, "SERVER_NAME",
234
                   ap_escape_html(r->pool, ap_get_server_name_for_url(r)));
234
                   ap_escape_html(r->pool, ap_get_server_name_for_url(r)));
235
    apr_table_addn(e, "SERVER_ADDR", r->connection->local_ip);  /* Apache */
235
236
    if (!getenv("HIDE_SERVER_ADDR")) {
237
        apr_table_addn(e, "SERVER_ADDR", r->connection->local_ip);  /* Apache */
238
    }
236
    apr_table_addn(e, "SERVER_PORT",
239
    apr_table_addn(e, "SERVER_PORT",
237
                  apr_psprintf(r->pool, "%u", ap_get_server_port(r)));
240
                  apr_psprintf(r->pool, "%u", ap_get_server_port(r)));
238
    add_unless_null(e, "REMOTE_HOST",
241
    add_unless_null(e, "REMOTE_HOST",

Return to bug 56395