2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 10:10:12 +00:00

Revert to jQuery 2.x and apply workaround

- Apply workaround for <https://github.com/advisories/GHSA-gxr4-xjj5-5px2>
This commit is contained in:
Emerle, Ryan 2021-12-14 16:37:34 -05:00
parent 4e21f2f13d
commit 0c4eebd510
No known key found for this signature in database
GPG Key ID: C0D34C592AED41CE
2 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,7 @@
"grunt-mocha-phantomjs": "^3.0.0",
"jasmine-core": "^2.99.1",
"jasmine-jquery": "2.1.1",
"jquery": "^3.5.1",
"jquery": "^2.2.4",
"karma": "^2.0.5",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.0.2",

View File

@ -45,8 +45,12 @@ angular.module('vinyldns', [
};
});
var regexIso8601 = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/;
// Workaround for jQuery SECVULN (https://github.com/advisories/GHSA-gxr4-xjj5-5px2)
jQuery.htmlPrefilter = function( html ) {
return html;
};
var regexIso8601 = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/;
function convertDateStringsToDates(input) {
if (typeof input !== "object") return input;