mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-11 17:23:37 +01:00
feat: enhance sanitization
This commit is contained in:
1 parent
d92ee1a003
commit
b4779bb49b
35 files changed
+2703
-1240
No files matched your search
+9
-5
@@ -5,7 +5,11 @@ import { createIcons, icons } from 'lucide';
|
||||
import '@phosphor-icons/web/regular';
|
||||
import * as pdfjsLib from 'pdfjs-dist';
|
||||
import '../css/styles.css';
|
||||
import { formatShortcutDisplay, formatStars } from './utils/helpers.js';
|
||||
import {
|
||||
escapeHtml,
|
||||
formatShortcutDisplay,
|
||||
formatStars,
|
||||
} from './utils/helpers.js';
|
||||
import {
|
||||
initI18n,
|
||||
applyTranslations,
|
||||
@@ -1051,8 +1055,8 @@ const init = async () => {
|
||||
|
||||
await showWarningModal(
|
||||
t('settings.warnings.alreadyInUse'),
|
||||
`<strong>${displayCombo}</strong> ${t('settings.warnings.assignedTo')}<br><br>` +
|
||||
`<em>"${translatedToolName}"</em><br><br>` +
|
||||
`<strong>${escapeHtml(displayCombo)}</strong> ${t('settings.warnings.assignedTo')}<br><br>` +
|
||||
`<em>"${escapeHtml(translatedToolName)}"</em><br><br>` +
|
||||
t('settings.warnings.chooseDifferent'),
|
||||
false
|
||||
);
|
||||
@@ -1071,8 +1075,8 @@ const init = async () => {
|
||||
const displayCombo = formatShortcutDisplay(combo, isMac);
|
||||
const shouldProceed = await showWarningModal(
|
||||
t('settings.warnings.reserved'),
|
||||
`<strong>${displayCombo}</strong> ${t('settings.warnings.commonlyUsed')}<br><br>` +
|
||||
`"<em>${reservedWarning}</em>"<br><br>` +
|
||||
`<strong>${escapeHtml(displayCombo)}</strong> ${t('settings.warnings.commonlyUsed')}<br><br>` +
|
||||
`"<em>${escapeHtml(reservedWarning)}</em>"<br><br>` +
|
||||
`${t('settings.warnings.unreliable')}<br><br>` +
|
||||
t('settings.warnings.useAnyway')
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user