Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v13'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumpei Ogawa committed Oct 10, 2015
2 parents 6e2207d + c963a88 commit d38cc32
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -4,6 +4,8 @@ node_js:
- "0.10"
- "iojs"

sudo: false

before_install:
- npm update -g npm

Expand Down
4 changes: 2 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
# Geddy
#### A simple, structured web framework for Node

[![Build Status](https://travis-ci.org/geddy/geddy.png?branch=master)](https://travis-ci.org/geddy/geddy)
[![Build Status](https://travis-ci.org/geddy/geddy.png?branch=master)](https://travis-ci.org/geddy/geddy) [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/geddy/geddy)

#### Install Geddy:

Expand Down Expand Up @@ -44,7 +44,7 @@ https://www.digitalocean.com/community/articles/geddy-js-a-no-brainer-mvc-node-j
#### Community

* Mailing list: [https://groups.google.com/group/geddyjs](https://groups.google.com/group/geddyjs)
* IRC: #geddy on Freenode
* [Gitter](https://gitter.im/geddy/geddy)

#### License

Expand Down
9 changes: 8 additions & 1 deletion lib/app/index.js
Expand Up @@ -179,7 +179,14 @@


// Get the path to the file, decoding the request URI
staticPath = this.config.staticFilePath + decodeURIComponent(reqUrl);
staticPath = path.resolve(path.join(this.config.staticFilePath, decodeURIComponent(reqUrl)));

// Prevent directory traversal
if (staticPath.indexOf(this.config.staticFilePath) !== 0) {
this.handleNotFound(reqUrl, params, reqObj, respObj);
return;
}

// Ignore querystring
staticPath = staticPath.split('?')[0];

Expand Down
1 change: 1 addition & 0 deletions lib/init/mailer.js
Expand Up @@ -8,6 +8,7 @@
var cfg = app.config.mailer
, mailer
, msg
, plugin
, transport;
if (cfg) {
msg = 'Geddy mailer support requires Nodemailer. Try `npm install nodemailer`.';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"MVC",
"realtime"
],
"version": "13.0.7",
"version": "13.0.8",
"author": "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",
"dependencies": {
"barista": "0.2.x",
Expand Down

0 comments on commit d38cc32

Please sign in to comment.