@fluentui/react-charting 5.25.8 → 5.25.9

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.
@@ -1871,8 +1871,9 @@ define(["require", "exports", "tslib", "d3-axis", "d3-array", "d3-scale", "d3-se
1871
1871
  return text.slice(0, lo) + '...';
1872
1872
  };
1873
1873
  function isSafeUrl(href) {
1874
- if (/^[a-z][a-z0-9+.-]*:/i.test(href)) {
1875
- return /^(https?|mailto|tel|ftp):/i.test(href);
1874
+ var normalized = href.replace(/[\u0000-\u001F\u007F\s]+/g, '');
1875
+ if (/^[a-z][a-z0-9+.-]*:/i.test(normalized)) {
1876
+ return /^(https?|mailto|tel|ftp):/i.test(normalized);
1876
1877
  }
1877
1878
  return true;
1878
1879
  }