Changeset 41719 in webkit


Ignore:
Timestamp:
Mar 15, 2009 10:40:33 AM (15 years ago)
Author:
kov@webkit.org
Message:

2009-03-15 Gustavo Noronha Silva <Gustavo Noronha Silva>

Reviewed by Anders Carlsson.

https://bugs.webkit.org/show_bug.cgi?id=24602
[Gtk] Searching in thepiratebay.org doesn't work with more than 1 word

Reintroduce the URI into the soup message after having set it in
the KURL, on redirects, to make sure it is properly encoded. This
fixes bad request problems when servers give bad URIs on their
response's Location header.

  • platform/network/soup/ResourceHandleSoup.cpp: (WebCore::restartedCallback):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r41715 r41719  
     12009-03-15  Gustavo Noronha Silva  <gns@gnome.org>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=24602
     6        [Gtk] Searching in thepiratebay.org doesn't work with more than 1 word
     7
     8        Reintroduce the URI into the soup message after having set it in
     9        the KURL, on redirects, to make sure it is properly encoded. This
     10        fixes bad request problems when servers give bad URIs on their
     11        response's Location header.
     12
     13        * platform/network/soup/ResourceHandleSoup.cpp:
     14        (WebCore::restartedCallback):
     15
    1162009-03-15  Alexey Proskuryakov  <ap@webkit.org>
    217
  • trunk/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r41619 r41719  
    188188    KURL newURL = KURL(handle->request().url(), location);
    189189
     190    // FIXME: This is needed because some servers use broken URIs in
     191    // their Location header, when redirecting, such as URIs with
     192    // white spaces instead of %20; this should be fixed in soup, in
     193    // the future, and this work-around removed.
     194    // See http://bugzilla.gnome.org/show_bug.cgi?id=575378.
     195    SoupURI* soup_uri = soup_uri_new(newURL.string().utf8().data());
     196    soup_message_set_uri(msg, soup_uri);
     197    soup_uri_free(soup_uri);
     198
    190199    ResourceRequest request = handle->request();
    191200    ResourceResponse response;
Note: See TracChangeset for help on using the changeset viewer.