Skip to content

Commit

Permalink
UI:
Browse files Browse the repository at this point in the history
Removed the ftps option from the uri sanitizer

Issue: #3081
PR:
  • Loading branch information
ordabach committed Mar 23, 2023
1 parent b46d357 commit 09a8f50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const REG_EXP_VALIDATORS = Object.freeze([
{expression: /[()[\]{};`'"<>]/gmi, expectedTestResult: false},
{expression: /^([^\w]*)(script|unsafe|javascript|vbscript|app|admin|icloud-sharing|icloud-vetting|help|aim|facetime-audio|applefeedback|ibooks|macappstore|udoc|ts|st|x-apple-helpbasic)/gmi, expectedTestResult: false},
{expression: /^(?:(?:(?:f|ht)tps?):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/gmi, expectedTestResult: true}
{expression: /^(?:(?:ht)tps?:|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/gmi, expectedTestResult: true}
]);

const GENERAL_UNSAFE_STRINGS = Object.freeze(['javascript:']);
Expand Down

0 comments on commit 09a8f50

Please sign in to comment.