mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-09-12 21:07:38 +02:00
feat(security): enhance security policies and implement input validation across multiple files
This commit is contained in:
@@ -67,7 +67,9 @@ export class RedactNode extends BaseWorkflowNode {
|
||||
const pdfInputs = requirePdfInput(inputs, 'Redact');
|
||||
|
||||
const mode = this.getText('redactMode', 'text');
|
||||
const searchText = this.getText('text', '');
|
||||
const searchText = this.getText('text', '')
|
||||
.replace(/\\/g, '')
|
||||
.replace(/\p{Cc}/gu, '');
|
||||
const fill = hexToRgb(this.getText('fillColor', '#000000'));
|
||||
|
||||
if (mode === 'text' && !searchText) {
|
||||
|
||||
Reference in New Issue
Block a user