• Paul Gascou-Vaillancourt's avatar
    Add global isSafeURL utility · 6ca5b19a
    Paul Gascou-Vaillancourt authored
    - Added isSafeURL utility based on prior work in gitlab-ee
    - Also added isAbsoluteOrRootRelative() and getBaseURL() utils,
      needed by isSafeURL
    - Removed URL() fallback because URL() is now polyfilled
    - Updated specs
    6ca5b19a
url_utility_spec.js 6.3 KB