Skip to content

Conversation

@Gallaecio
Copy link
Member

Fixes #128

This is a fork of #91 that:

  1. Includes tests for safe_url_string
  2. Reduces the scope of the changes to URL paths. Reducing the scope to URL paths is due to tests only covering that scenario; I did not look into whether or not # is safe in other URL parts, even though I suspect it is not.

jvanasco and others added 3 commits October 18, 2019 13:36
* issue scrapy#91
* description: don't decode `%23` to `#` when it appears in a url
* tests-new: test_url.CanonicalizeUrlTest.test_preserve_nonfragment_hash
* tests-pass: py27, py36
* notes: adjustment to _safe_chars suggested by @Gallaecio
@codecov
Copy link

codecov bot commented Oct 18, 2019

Codecov Report

Merging #141 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   95.43%   95.44%   +<.01%     
==========================================
  Files           7        7              
  Lines         482      483       +1     
  Branches       98       98              
==========================================
+ Hits          460      461       +1     
  Misses         15       15              
  Partials        7        7
Impacted Files Coverage Δ
w3lib/url.py 98.05% <100%> (ø) ⬆️

@wRAR wRAR merged commit 57fe01c into scrapy:master Mar 5, 2021
@kmike kmike added this to the 2.0.0 milestone Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants