From 388bea740bfde42852f8a4aee6c495c6d81c7251 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sat, 17 Sep 2022 08:09:22 +1200 Subject: [PATCH] UI: Add documentation link (wiki) --- server/ui-src/App.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 +