]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Reverse this change - as pointed out by Joshua Slive the UserCanonicalName
authorGraham Leggett <minfrin@apache.org>
Thu, 21 Mar 2002 14:52:55 +0000 (14:52 +0000)
committerGraham Leggett <minfrin@apache.org>
Thu, 21 Mar 2002 14:52:55 +0000 (14:52 +0000)
directive handles this.
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94086 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/main/http_core.c

index 1e3137c4487d23489b9d5ff0169f2a85a0d26aba..6547ce23bf1b68989085753a64449712bdc7146a 100644 (file)
@@ -4,12 +4,6 @@ Changes with Apache 1.3.24
      the original site Server header with it's own, which is not
      allowed by RFC2616. Fixed. [Graham Leggett]
 
-  *) Change ap_construct_url() so that the r->hostname is used in
-     the URL instead of the value of the ServerName directive. This
-     stops Apache redirecting to a different website name to the
-     one the user typed in, which can break cookies and javascript
-     handling on the client. [Graham Leggett]
-
   *) Fixed the previous multiple-cookie fix in the proxy. Cookies
      are broken in that they contain dates which in turn contain
      commas - so merging and then unmerging them breaks Set-Cookie
index bb7407c30dd2256aa7f40a9e9848f129c9564823..d37b04bd83bae03e4e9f870174b640fa5962d643 100644 (file)
@@ -831,7 +831,7 @@ API_EXPORT(char *) ap_construct_url(pool *p, const char *uri,
                                    request_rec *r)
 {
     unsigned port = ap_get_server_port(r);
-    const char *host = r->hostname;
+    const char *host = ap_get_server_name(r);
 
     if (ap_is_default_port(port, r)) {
        return ap_pstrcat(p, ap_http_method(r), "://", host, uri, NULL);