Skip to content

Commit

Permalink
Don't escape space as "+" in UL4 function "ul4quote".
Browse files Browse the repository at this point in the history
  • Loading branch information
doerwalter committed Oct 18, 2021
1 parent 72989aa commit 0002519
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ of XIST. For a description of how to update your code to each versions of XIST
see :ref:`MIGRATION`.


Changes in HEAD (released 10/??/2021)
-------------------------------------

* The UL4 function ``urlquote()`` now uses :func:`urllib.parse.quote` instead
of :func:`urllib.parse.quote_plus`. This means that the pace character will
get encoded as ``%20`` instead of ``+``.


Changes in 5.68.1 (released 09/23/2021)
---------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions src/ll/ul4c.py
Original file line number Diff line number Diff line change
Expand Up @@ -6202,11 +6202,11 @@ def _format(obj, fmt, lang=None):


def _urlquote(string):
return urlparse.quote_plus(string)
return urlparse.quote(string)


def _urlunquote(string):
return urlparse.unquote_plus(string)
return urlparse.unquote(string)


def _md5(string, /):
Expand Down

0 comments on commit 0002519

Please sign in to comment.