Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-modrewrite

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-modrewrite - npm Package Compare versions

Comparing version 0.3.8 to 0.3.9

2

package.json
{
"name": "connect-modrewrite",
"main": "./src/modrewrite.js",
"version": "0.3.8",
"version": "0.3.9",
"description": "connect-modrewrite adds modrewrite functionality to connect/express server",

@@ -6,0 +6,0 @@ "author": {

@@ -47,3 +47,12 @@ module.exports = function(rules, normalize) {

// Normalization process
urlSplits.splice(0, referersSplits.length);
var removes = 0;
for( var i = 0; i < referersSplits.length; i++) {
var urlIndex = i - removes;
if(referersSplits[i] == urlSplits[urlIndex]) {
urlSplits.splice(urlIndex, 1);
removes++;
} else {
break;
}
}
// Join back all splits

@@ -50,0 +59,0 @@ req.url = '/' + urlSplits.join('/');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc