mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
v2.18.1
This commit is contained in:
parent
0bbf8f4914
commit
df34c4a0ae
11 changed files with 24 additions and 23 deletions
|
|
@ -4,6 +4,7 @@ import { forEachObjectEntry, pInt } from 'Common/Utils';
|
|||
const
|
||||
tpl = createElement('template'),
|
||||
htmlre = /[&<>"']/g,
|
||||
httpre = /^(https?:)?\/\//i,
|
||||
htmlmap = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
|
|
@ -262,7 +263,7 @@ export const
|
|||
attachment.isLinked(true);
|
||||
}
|
||||
}
|
||||
else if (/^(https?:)?\/\//i.test(value))
|
||||
else if (httpre.test(value))
|
||||
{
|
||||
setAttribute('data-x-src', value);
|
||||
result.hasExternals = true;
|
||||
|
|
@ -325,7 +326,7 @@ export const
|
|||
attachment.isInline(true);
|
||||
attachment.isLinked(true);
|
||||
}
|
||||
} else if (/^(https?:)?\/\//.test(lowerUrl)) {
|
||||
} else if (httpre.test(lowerUrl)) {
|
||||
result.hasExternals = true;
|
||||
urls_remote.push([property, found]);
|
||||
} else if ('data:image/' === lowerUrl.slice(0, 11)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue