Opened 7 years ago

Closed 2 years ago

Last modified 2 years ago

#5964 closed New feature (fixed)

utils: urlunquote

Reported by: Thomas Güttler (Home) < > Owned by: aaugustin
Component: Core (Other) Version: master
Severity: Normal Keywords:
Cc: hv@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



Using only urllib.unquote() for the result of django.utils.http.urlquote() does
not work. That's why I think an urlunquote() would be good.

A patch inclusive unittest is attached.

Attachments (2)

urlunquote.diff (1.4 KB) - added by Thomas Güttler (Home) < > 7 years ago.
5964.diff (2.8 KB) - added by DrMeers 3 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by Thomas Güttler (Home) < >

comment:1 Changed 7 years ago by Simon G <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 6 years ago by adrian

  • Component changed from Tools to Core framework

comment:3 Changed 3 years ago by gabrielhurley

  • Severity set to Normal
  • Type set to New feature

comment:4 Changed 3 years ago by Alex

  • Easy pickings unset
  • Triage Stage changed from Design decision needed to Accepted
  • UI/UX unset

comment:5 Changed 3 years ago by DrMeers

Makes sense to me, though we ought to provide unquote_plus since we provide quote_plus. I'll attach patch that covers both, though someone with deep unicode knowledge should double-check whether we should be using encode/decode instead, and whether utf-8 will suffice here.

Changed 3 years ago by DrMeers

comment:6 Changed 3 years ago by aaugustin

  • Owner changed from nobody to aaugustin

comment:7 Changed 2 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

In [17407]:

Fixed #5964 -- Added unicode-aware versions of urlunquote and urlunquote_plus.

comment:8 Changed 2 years ago by guettli

thank you.

comment:9 Changed 2 years ago by aaugustin

Well, sorry for the delay...

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.