This commit is contained in:
Kovid Goyal 2013-07-03 15:17:46 +05:30
parent 36386d06cc
commit a149790b93

View File

@ -83,6 +83,8 @@ class Links(object):
action = Dictionary({ action = Dictionary({
'Type':Name('Action'), 'S':Name('URI'), 'Type':Name('Action'), 'S':Name('URI'),
}) })
# Do not try to normalize/quote/unquote this URL as if it
# has a query part, it will get corrupted
action['URI'] = String(url) action['URI'] = String(url)
annot['A'] = action annot['A'] = action
if 'A' in annot or 'Dest' in annot: if 'A' in annot or 'Dest' in annot: