@unsetsoft/ryunixjs 1.2.4-canary.18 → 1.2.4-canary.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Ryunix.esm.js
CHANGED
|
@@ -485,7 +485,11 @@ const validateUri = (name, value) => {
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
const normalized = value.replace(/\s+/g, '').toLowerCase();
|
|
488
|
-
if (
|
|
488
|
+
if (
|
|
489
|
+
normalized.startsWith('javascript:') ||
|
|
490
|
+
normalized.startsWith('vbscript:') ||
|
|
491
|
+
normalized.startsWith('data:')
|
|
492
|
+
) {
|
|
489
493
|
if (process.env.NODE_ENV !== 'production') {
|
|
490
494
|
console.warn(`[Ryunix Security] Blocked dangerous ${name} URI: ${value}`);
|
|
491
495
|
}
|