PHP 8.2.30
Preview: querystring_parser.js Size: 740 B
/home/byroehnu/.trash/node_modules11/formidable/lib/querystring_parser.js

if (global.GENTLY) require = GENTLY.hijack(require);

// This is a buffering parser, not quite as nice as the multipart one.
// If I find time I'll rewrite this to be fully streaming as well
var querystring = require('querystring');

function QuerystringParser(maxKeys) {
  this.maxKeys = maxKeys;
  this.buffer = '';
}
exports.QuerystringParser = QuerystringParser;

QuerystringParser.prototype.write = function(buffer) {
  this.buffer += buffer.toString('ascii');
  return buffer.length;
};

QuerystringParser.prototype.end = function() {
  var fields = querystring.parse(this.buffer, '&', '=', { maxKeys: this.maxKeys });
  for (var field in fields) {
    this.onField(field, fields[field]);
  }
  this.buffer = '';

  this.onEnd();
};

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1.60 KB lrw-r--r-- 2026-02-28 11:54:48
Edit Download
13.54 KB lrw-r--r-- 2026-02-28 11:54:48
Edit Download
133 B lrw-r--r-- 2026-02-28 11:54:50
Edit Download
650 B lrw-r--r-- 2026-02-28 11:54:50
Edit Download
8.26 KB lrw-r--r-- 2026-02-28 11:54:50
Edit Download
456 B lrw-r--r-- 2026-02-28 11:54:50
Edit Download
740 B lrw-r--r-- 2026-02-28 11:54:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).