From: JazzyNico Date: Sat, 13 Jun 2009 20:25:11 +0000 (+0000) Subject: embedimage.py patch #4 for Bug #386069 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a5b0da1bd438095feebb0e1309f398c93ceba9d;p=inkscape.git embedimage.py patch #4 for Bug #386069 --- diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py index f7f0d81d5..16439223b 100644 --- a/share/extensions/embedimage.py +++ b/share/extensions/embedimage.py @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ''' -import inkex, os, base64, urlparse +import inkex, os, base64, urlparse, urllib import gettext _ = gettext.gettext @@ -56,9 +56,9 @@ class Embedder(inkex.Effect): 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[3:] + href = href[1:] path='' #path selection strategy: # 1. href if absolute