1
0
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:
Stefan Fritsch
2010-01-16 20:32:09 +00:00
parent 826357cf4b
commit 3560f2e015
6 changed files with 21 additions and 6 deletions

View File

@@ -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,