bug fix: do not alter data or blob URLs with [asatt]

This commit is contained in:
or-else
2024-02-10 11:33:36 -08:00
parent 7f2a89d86c
commit 354ce3b8a3
5 changed files with 12 additions and 4 deletions
+3
View File
@@ -3545,6 +3545,9 @@ function sanitizeUrlForMime(url, mimeMajor) {
return null;
}
function urlAsAttachment(url) {
if (url.startsWith('data:') || url.startsWith('blob:')) {
return url;
}
let query = '',
fragment = '';
const idxF = url.indexOf('#');