gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10682: Fix port resolution of relat


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10682: Fix port resolution of relative urls
Date: Tue, 10 Mar 2009 10:31:05 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10682
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Tue 2009-03-10 10:31:05 +0100
message:
  Fix port resolution of relative urls
modified:
  libbase/URL.cpp
=== modified file 'libbase/URL.cpp'
--- a/libbase/URL.cpp   2009-03-09 15:55:50 +0000
+++ b/libbase/URL.cpp   2009-03-10 09:31:05 +0000
@@ -227,9 +227,10 @@
                return;
        }
 
-       // use protocol and host from baseurl
+       // use protocol, port and host from baseurl
        _proto = baseurl._proto;
        _host = baseurl._host;
+    _port = baseurl._port;
 
        if ( relative_url.size() && relative_url[0] == '/' ) 
        {
@@ -291,10 +292,6 @@
 
                split_anchor_from_path();
 
-        // Extract the port number from the hostname, if any
-        split_port_from_host();
-        _port= baseurl._port;
-
                split_querystring_from_path();
 
                normalize_path(_path);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]