Comparing version 1.3.11 to 1.3.12
{ | ||
"name": "bones", | ||
"description": "Framework for using backbone.js on the client and server.", | ||
"version": "1.3.11", | ||
"version": "1.3.12", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -11,6 +11,7 @@ # Bones | ||
To run the test suite, type `npm test`. | ||
To run the test suite, type `npm test`. **Note**: bones has to be in a folder named `node_modules` for tests to work correctly. | ||
## License | ||
Bones is [BSD licensed](https://github.com/developmentseed/bones/raw/master/LICENSE). | ||
Bones is [BSD licensed](https://github.com/developmentseed/bones/raw/master/LICENSE). | ||
@@ -25,4 +25,7 @@ var env = process.env.NODE_ENV || 'development'; | ||
} else if (!hosts.length) { | ||
req.headers.host = host; | ||
return next(); | ||
// Check that the supplied hostname is harmless. If not, we'll | ||
// substitute it with the hostname reported by the machine. | ||
if (/^\w([\w-]*\w)?(\.\w([\w-]*\w)?)*(:\d+)?$/.test(req.headers.host)) { | ||
return next(); | ||
} | ||
} else { | ||
@@ -29,0 +32,0 @@ for (var i = 0; i < hosts.length; i++) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170449
1786
17