@syncfusion/ej2-inputs 22.1.38 → 22.1.39
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/CHANGELOG.md +15 -0
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +11 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +11 -1
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/uploader/uploader.js +11 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.1.
|
|
3
|
+
* version : 22.1.39
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-inputs@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inputs@22.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@22.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-4baJA8Seg3ZBD8LHkc9C14+JHsRpVAok3824wYR52xp/QD9Lr6+9ueUsPMIVHYB3bPx/ElAKbElkiB2yGYfVWA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"/@syncfusion/ej2-schedule",
|
|
40
40
|
"/@syncfusion/ej2-vue-inputs"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-22.1.
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-22.1.38.tgz",
|
|
43
|
+
"_shasum": "af9599bc4fb8fd9a70efbb1bb6e8427f92e99498",
|
|
44
44
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"bundleDependencies": false,
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@syncfusion/ej2-base": "~22.1.38",
|
|
52
|
-
"@syncfusion/ej2-buttons": "~22.1.
|
|
52
|
+
"@syncfusion/ej2-buttons": "~22.1.39",
|
|
53
53
|
"@syncfusion/ej2-popups": "~22.1.38",
|
|
54
54
|
"@syncfusion/ej2-splitbuttons": "~22.1.37"
|
|
55
55
|
},
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
120
120
|
},
|
|
121
121
|
"typings": "index.d.ts",
|
|
122
|
-
"version": "22.1.
|
|
122
|
+
"version": "22.1.39",
|
|
123
123
|
"sideEffects": false,
|
|
124
124
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
125
125
|
}
|
package/src/uploader/uploader.js
CHANGED
|
@@ -1293,7 +1293,17 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
1293
1293
|
for (var i = 0; i < fileData.length; i++) {
|
|
1294
1294
|
var sanitizeFile = SanitizeHtmlHelper.beforeSanitize();
|
|
1295
1295
|
var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[parseInt(i.toString())].name);
|
|
1296
|
-
|
|
1296
|
+
var currentFileName = fileData[parseInt(i.toString())].name;
|
|
1297
|
+
var isUTF8 = false;
|
|
1298
|
+
for (var i_1 = 0; i_1 < currentFileName.length; i_1++) {
|
|
1299
|
+
if (currentFileName.charCodeAt(i_1) > 127) {
|
|
1300
|
+
isUTF8 = true;
|
|
1301
|
+
break;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
var htmlTagRegex = /<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/i;
|
|
1305
|
+
var hasHTMLString = htmlTagRegex.test(currentFileName);
|
|
1306
|
+
if ((sanitizeFileName !== fileData[parseInt(i.toString())].name) && !(isUTF8 && !hasHTMLString)) {
|
|
1297
1307
|
var encodedFileName = targetFiles[parseInt(i.toString())].name.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
|
|
1298
1308
|
return '&#' + i.charCodeAt(0) + ';';
|
|
1299
1309
|
});
|