piral-cli 1.11.1-beta.b311b24 → 1.11.1

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.
@@ -19429,6 +19429,9 @@ var require_form_data = __commonJS({
19429
19429
  var setToStringTag = require_es_set_tostringtag();
19430
19430
  var hasOwn = require_hasown();
19431
19431
  var populate = require_populate();
19432
+ function escapeHeaderParam(str) {
19433
+ return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
19434
+ }
19432
19435
  function FormData4(options) {
19433
19436
  if (!(this instanceof FormData4)) {
19434
19437
  return new FormData4(options);
@@ -19518,7 +19521,7 @@ var require_form_data = __commonJS({
19518
19521
  var contents = "";
19519
19522
  var headers = {
19520
19523
  // add custom disposition as third element or keep it two elements if not
19521
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
19524
+ "Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
19522
19525
  // if no content type. allow it to be empty array
19523
19526
  "Content-Type": [].concat(contentType || [])
19524
19527
  };
@@ -19552,7 +19555,7 @@ var require_form_data = __commonJS({
19552
19555
  filename = path3.basename(value.client._httpMessage.path || "");
19553
19556
  }
19554
19557
  if (filename) {
19555
- return 'filename="' + filename + '"';
19558
+ return 'filename="' + escapeHeaderParam(filename) + '"';
19556
19559
  }
19557
19560
  };
19558
19561
  FormData4.prototype._getContentType = function(value, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-cli",
3
- "version": "1.11.1-beta.b311b24",
3
+ "version": "1.11.1",
4
4
  "description": "The standard CLI for creating and building a Piral instance or a Pilet.",
5
5
  "keywords": [
6
6
  "portal",
@@ -78,5 +78,5 @@
78
78
  "open": "^10",
79
79
  "typescript": "^5"
80
80
  },
81
- "gitHead": "b311b24553a2ef32dcbd4c8e4288e80827e13878"
81
+ "gitHead": "5a57b813ac5cae4e60fbb7c6cd0f5120135371dd"
82
82
  }