diff -r b2a7c015362b -r f62f7f0bcaa4 src/cm/views/texts.py --- a/src/cm/views/texts.py Thu Aug 09 10:11:21 2012 +0200 +++ b/src/cm/views/texts.py Thu Aug 09 11:06:46 2012 +0200 @@ -302,7 +302,7 @@ Replaces (html) links to attachs with embeded inline images """ content = re.sub("%s" %settings.SITE_URL, '', content) # changes absolute urls to relative urls - attach_re = r'(?:/text/(?P\w*))?/attach/(?P\w*)/' + attach_re = r'"(?:/text/(?P\w*))?/attach/(?P\w*)/' attach_str_textversion = r'/text/%s/attach/%s/' attach_str = r'/attach/%s/' for match in re.findall(attach_re, content):