diff --git a/server/ui-src/App.vue b/server/ui-src/App.vue index 86e6bbb..a75fc31 100644 --- a/server/ui-src/App.vue +++ b/server/ui-src/App.vue @@ -173,7 +173,8 @@ export default { new RegExp('cid:'+a.ContentID, 'g'), window.location.origin+'/api/'+d.ID+'/part/'+a.PartID ); - } else if (a.FileName.match(/^[a-zA-Z\_\-\.]+$/)) { + } + if (a.FileName.match(/^[a-zA-Z0-9\_\-\.]+$/)) { // some old email clients use the filename d.HTML = d.HTML.replace( new RegExp('src=(\'|")'+a.FileName+'(\'|")', 'g'), @@ -191,7 +192,8 @@ export default { new RegExp('cid:'+a.ContentID, 'g'), window.location.origin+'/api/'+d.ID+'/part/'+a.PartID ); - } else if (a.FileName.match(/^[a-zA-Z\_\-\.]+$/)) { + } + if (a.FileName.match(/^[a-zA-Z0-9\_\-\.]+$/)) { // some old email clients use the filename d.HTML = d.HTML.replace( new RegExp('src=(\'|")'+a.FileName+'(\'|")', 'g'), @@ -596,11 +598,15 @@ export default { Enable alerts -
  • - +
  • + GitHub + / + + Docs +