Comment 35 for bug 386069

Revision history for this message
Rick Vinyard (rvinyard) wrote :

Ahhh, I see the difference. I had applied the patch above in this bug.

But it looks like the committed version applied unquote() before assigning to href... the unquote() replaces the escape characters.

     def embedImage(self, node):
         xlink = node.get(inkex.addNS('href','xlink'))
         if xlink is None or xlink[:5] != 'data:':
             absref=node.get(inkex.addNS('absref','sodipodi'))
             url=urlparse.urlparse(xlink)
- href=url.path
+ href=urllib.unquote(url.path)
+ if os.name == 'nt' and href[0] == '/':
+ href = href[1:]
             path=''
             #path selection strategy:
             # 1. href if absolute
             # 2. realpath-ified href