mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Turn static function get_server_name_for_url() into public function
ap_get_server_name_for_url() and use it where appropriate. This fixes mod_rewrite generating invalid URLs for redirects to IPv6 literal addresses. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@900022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -151,7 +151,7 @@ int ssl_hook_ReadReq(request_rec *r)
|
||||
|
||||
thisurl = ap_escape_html(r->pool,
|
||||
apr_psprintf(r->pool, "https://%s%s/",
|
||||
ap_get_server_name(r),
|
||||
ap_get_server_name_for_url(r),
|
||||
thisport));
|
||||
|
||||
errmsg = apr_psprintf(r->pool,
|
||||
|
Reference in New Issue
Block a user