diff --git a/ChangeLog b/ChangeLog index 2892e045a..a03bf47a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -72,6 +72,7 @@ release 0.14.4 * fixed bug when force-checking a torrent with partial pieces * fixed memory leak in disk cache * fixed torrent file path vulnerability + * fixed upnp release 0.14.3 diff --git a/src/upnp.cpp b/src/upnp.cpp index d9623cf70..ecc1fcef5 100644 --- a/src/upnp.cpp +++ b/src/upnp.cpp @@ -903,7 +903,7 @@ void upnp::on_upnp_xml(error_code const& e } } - if (!s.url_base.empty() && s.control_url.substr(7) != "http://") + if (!s.url_base.empty() && s.control_url.substr(0, 7) != "http://") { // avoid double slashes in path if (s.url_base[s.url_base.size()-1] == '/'