<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/urllib/parse.py, branch 3.8</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/urllib/parse.py?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/urllib/parse.py?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2024-09-04T15:44:22Z</updated>
<entry>
<title>[3.8] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority (GH-113563) (#119028)</title>
<updated>2024-09-04T15:44:22Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2024-09-04T15:44:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a878121deed09879506398c97bf121a40590187'/>
<id>urn:sha1:0a878121deed09879506398c97bf121a40590187</id>
<content type='text'>
(cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e)

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
</entry>
<entry>
<title>[3.8] gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-102508) (GH-104575) (GH-104592) (#104593) (#104895)</title>
<updated>2023-06-05T15:42:56Z</updated>
<author>
<name>stratakis</name>
<email>cstratak@redhat.com</email>
</author>
<published>2023-06-05T15:42:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c2ff15b9aa9f20c2340ad69cbf2300528db9a44'/>
<id>urn:sha1:9c2ff15b9aa9f20c2340ad69cbf2300528db9a44</id>
<content type='text'>
`urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit GH-25595.

This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/GH-url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329).

I simplified the docs by eliding the state of the world explanatory
paragraph in this security release only backport.  (people will see
that in the mainline /3/ docs)

(cherry picked from commit d7f8a5fe07b0ff3a419ccec434cc405b21a5a304)
(cherry picked from commit 2f630e1ce18ad2e07428296532a68b11dc66ad10)
(cherry picked from commit 610cc0ab1b760b2abaac92bd256b96191c46b941)
(cherry picked from commit f48a96a28012d28ae37a2f4587a780a5eb779946)

Co-authored-by: Miss Islington (bot) &lt;31488909+miss-islington@users.noreply.github.com&gt;
Co-authored-by: Illia Volochii &lt;illia.volochii@gmail.com&gt;
Co-authored-by: Gregory P. Smith [Google] &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595) (#25726)</title>
<updated>2021-05-05T17:25:29Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-05T17:25:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=515a7bc4e13645d0945b46a8e1d9102b918cd407'/>
<id>urn:sha1:515a7bc4e13645d0945b46a8e1d9102b918cd407</id>
<content type='text'>
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
(cherry picked from commit 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4)
Co-authored-by: Senthil Kumaran &lt;senthil@uthcode.com&gt;
Co-authored-by: Senthil Kumaran &lt;skumaran@gatech.edu&gt;</content>
</entry>
<entry>
<title>bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818) (#25345)</title>
<updated>2021-04-16T17:07:31Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-04-16T17:07:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5b80eb11b4812b4a579ce129ba4a10c5f5d27f6'/>
<id>urn:sha1:d5b80eb11b4812b4a579ce129ba4a10c5f5d27f6</id>
<content type='text'>
* coerce bytes separator to string

* Add news

* Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
(cherry picked from commit b38601d49675d90e1ee6faa47f7adaeca992d02d)

Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;

Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-42967: only use '&amp;' as a query string separator (GH-24297)  (#24529)</title>
<updated>2021-02-15T18:15:02Z</updated>
<author>
<name>Senthil Kumaran</name>
<email>senthil@uthcode.com</email>
</author>
<published>2021-02-15T18:15:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e3110c3cfbb7daa690d54d0eff6c264c870a71bf'/>
<id>urn:sha1:e3110c3cfbb7daa690d54d0eff6c264c870a71bf</id>
<content type='text'>
* bpo-42967: only use '&amp;' as a query string separator (#24297)

bpo-42967: [security] Address a web cache-poisoning issue reported in
urllib.parse.parse_qsl().

urllib.parse will only us "&amp;" as query string separator by default
instead of both ";" and "&amp;" as allowed in earlier versions. An optional
argument seperator with default value "&amp;" is added to specify the
separator.

Co-authored-by: Éric Araujo &lt;merwok@netwok.org&gt;
Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
Co-authored-by: Éric Araujo &lt;merwok@netwok.org&gt;
(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)

* [3.8] bpo-42967: only use '&amp;' as a query string separator (GH-24297)

bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl().

urllib.parse will only us "&amp;" as query string separator by default instead of both ";" and "&amp;" as allowed in earlier versions. An optional argument seperator with default value "&amp;" is added to specify the separator.

Co-authored-by: Éric Araujo &lt;merwok@netwok.org&gt;
Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
Co-authored-by: Éric Araujo &lt;merwok@netwok.org&gt;.
(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)

Co-authored-by: Adam Goldschmidt &lt;adamgold7@gmail.com&gt;

* Update correct version information.

* fix docs and make logic clearer

Co-authored-by: Adam Goldschmidt &lt;adamgold7@gmail.com&gt;
Co-authored-by: Fidget-Spinner &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-32498: Improve exception message on passing bytes to urllib.parse.unquote (GH-22746)</title>
<updated>2020-10-18T21:06:34Z</updated>
<author>
<name>Irit Katriel</name>
<email>iritkatriel@yahoo.com</email>
</author>
<published>2020-10-18T21:06:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a3f7c042a32fb813835243bd7f96e47c665bfdc'/>
<id>urn:sha1:1a3f7c042a32fb813835243bd7f96e47c665bfdc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-16839)" (GH-18525)</title>
<updated>2020-02-16T21:47:21Z</updated>
<author>
<name>Senthil Kumaran</name>
<email>senthil@uthcode.com</email>
</author>
<published>2020-02-16T21:47:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ea316fd21527dec53e704a5b04833ac462ce3863'/>
<id>urn:sha1:ea316fd21527dec53e704a5b04833ac462ce3863</id>
<content type='text'>
This reverts commit 0f3187c1ce3b3ace60f6c1691dfa3d4e744f0384.

The change broke the backwards compatibility of parsing behavior in a
patch release of Python (3.8.1). A decision was taken to revert this
patch in 3.8.2.

In https://bugs.python.org/issue27657 it was decided that the previous
behavior like

&gt;&gt;&gt; urlparse('localhost:8080')
ParseResult(scheme='', netloc='', path='localhost:8080', params='', query='', fragment='')

&gt;&gt;&gt; urlparse('undefined:8080')
ParseResult(scheme='', netloc='', path='undefined:8080', params='', query='', fragment='')

needs to be preserved in patch releases as number of users rely upon it.

Explicitly mention the releases involved with the revert in NEWS.
Adopt the wording suggested by @ned-deily.</content>
</entry>
<entry>
<title>bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)</title>
<updated>2020-01-05T12:32:00Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-01-05T12:32:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fc84d501b9d77701cbdd485de45e200bf027c0e9'/>
<id>urn:sha1:fc84d501b9d77701cbdd485de45e200bf027c0e9</id>
<content type='text'>
Ignore leading dots and no longer ignore a trailing newline.
(cherry picked from commit 6a265f0d0c0a4b3b8fecf4275d49187a384167f4)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-661) (#16839)</title>
<updated>2019-10-18T15:23:14Z</updated>
<author>
<name>Senthil Kumaran</name>
<email>skumaran@gatech.edu</email>
</author>
<published>2019-10-18T15:23:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0f3187c1ce3b3ace60f6c1691dfa3d4e744f0384'/>
<id>urn:sha1:0f3187c1ce3b3ace60f6c1691dfa3d4e744f0384</id>
<content type='text'>
* bpo-27657: Fix urlparse() with numeric paths

Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.

* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.
(cherry picked from commit 5a88d50ff013a64fbdb25b877c87644a9034c969)

Co-authored-by: Tim Graham &lt;timograham@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-36742: Corrects fix to handle decomposition in usernames (#13812)</title>
<updated>2019-06-04T15:55:29Z</updated>
<author>
<name>Steve Dower</name>
<email>steve.dower@python.org</email>
</author>
<published>2019-06-04T15:55:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8d0ef0b5edeae52960c7ed05ae8a12388324f87e'/>
<id>urn:sha1:8d0ef0b5edeae52960c7ed05ae8a12388324f87e</id>
<content type='text'>
</content>
</entry>
</feed>
