Skip to content

Commit

Permalink
Fixed Encoding/Decoding exception that happened for milestone names w…
Browse files Browse the repository at this point in the history
…ith diacritics.
  • Loading branch information
filipefigcorreia committed Mar 21, 2013
1 parent 24fbd8a commit 086ea40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0.12/sumstats/web_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def _get_milestone(self, req):
milestone_re = re.compile(r"/milestone/(?P<milestone>[^?]+)")
match = milestone_re.search(path)
if match:
name = urllib.unquote(match.groupdict()['milestone'])
name = urllib.unquote(match.groupdict()['milestone']).decode("utf-8")
for m in Milestone.select(self.env, include_completed=True):
if m.name == name:
return m
Expand Down

0 comments on commit 086ea40

Please sign in to comment.