cli-tunnel 1.2.0-beta.7 → 1.2.0-beta.8

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -243,7 +243,9 @@ const server = http.createServer((req, res) => {
243
243
  // #18: Guard against malformed URI encoding
244
244
  let decodedUrl;
245
245
  try {
246
- decodedUrl = decodeURIComponent(req.url || '/');
246
+ // Strip query string before resolving file path
247
+ const urlPath = (req.url || '/').split('?')[0];
248
+ decodedUrl = decodeURIComponent(urlPath);
247
249
  }
248
250
  catch {
249
251
  res.writeHead(400);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-tunnel",
3
- "version": "1.2.0-beta.7",
3
+ "version": "1.2.0-beta.8",
4
4
  "description": "Tunnel any CLI app to your phone — PTY + devtunnel + xterm.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",