Skip to content
Snippets Groups Projects
Commit 8445c578 authored by deuce's avatar deuce
Browse files

Escape CID replace RegExp too.

parent 7bc6fe10
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ function mime_decode(hdr, body)
for(il in Message.inlines) {
var path=http_request.virtual_path;
var basepath=path.match(/^(.*\/)[^\/]*$/);
re=new RegExp("cid:("+Message.inlines[il]+")","ig");
re=new RegExp("cid:("+regex_escape(Message.inlines[il])+")","ig");
Message.body=Message.body.replace(re,basepath[1]+"inline.ssjs/"+template.group.number+"/"+template.sub.code+"/"+hdr.number+"/$1");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment