Skip to content

Conversation

gasman
Copy link
Contributor

@gasman gasman commented Mar 18, 2021

Addresses #167

gasman added 2 commits March 18, 2021 15:42
Current Python versions as of February 2021 no longer treat the ; character as a URL parameter separator: https://python-security.readthedocs.io/vuln/urllib-query-string-semicolon-separator.html

This breaks the tests for the url_replace tag, as they attempt to parse a URL generated by a Django template. HTML autoescaping is enabled, so & characters in the URL will be escaped as &. This discrepancy between escaped and unescaped HTML was previously masked because the closing ; was also treated as a separator.
On Wagtail 2.12, switch to using raw_data in place of the deprecated stream_data. Switching to indexing the stream directly as a list (as per https://docs.wagtail.io/en/stable/releases/2.12.html#stream-data-on-streamfield-values-is-deprecated) is not really feasible here, as this would change public APIs that expect the JSON representation (e.g. https://wagtailstreamforms.readthedocs.io/en/latest/fields.html)
@codecov
Copy link

codecov bot commented Mar 18, 2021

Codecov Report

Merging #170 (56c34c4) into master (9307c65) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #170      +/-   ##
==========================================
+ Coverage   95.63%   95.65%   +0.01%     
==========================================
  Files          28       28              
  Lines         940      943       +3     
  Branches       84       85       +1     
==========================================
+ Hits          899      902       +3     
  Misses         34       34              
  Partials        7        7              
Impacted Files Coverage Δ
wagtailstreamforms/models/form.py 96.10% <100.00%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9307c65...56c34c4. Read the comment docs.

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.

Wagatil v2.11 has dropped support for unidecode

2 participants