Skip to content

Commit

Permalink
Merge pull request #4131 from cclauss/urlencode-unicode-urls-on-redirect
Browse files Browse the repository at this point in the history
urllib.parse.quote() Unicode urls on redirect
  • Loading branch information
mekarpeles authored Nov 20, 2020
2 parents 8fcb4b8 + 6d226ea commit bb9709c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/plugins/upstream/addbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def POST(self, key):
else:
add_flash_message("info", utils.get_message("flash_book_updated"))

raise web.seeother(edition.url())
raise web.seeother(urllib.parse.quote(edition.url()))
except ClientException as e:
add_flash_message('error', e.args[-1] or e.json)
return self.GET(key)
Expand Down

0 comments on commit bb9709c

Please sign in to comment.