Created
July 4, 2010 11:32
-
-
Save nkhine/463360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff lib/express/plugins/body-decoder.js | |
diff --git a/lib/express/plugins/body-decoder.js b/lib/express/plugins/body-decoder.js | |
index 1d67ff4..4ec448c 100644 | |
--- a/lib/express/plugins/body-decoder.js | |
+++ b/lib/express/plugins/body-decoder.js | |
@@ -22,7 +22,7 @@ exports.BodyDecoder = Plugin.extend({ | |
var request = event.request | |
if (request.header('Content-Type') && | |
request.header('Content-Type').includes('application/x-www-form-urlencoded')) | |
- request.params.post = queryString.parseQuery(request.body) | |
+ request.params.post = queryString.parse(request.body) | |
} | |
} | |
-}) | |
\ No newline at end of file | |
+}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff lib/support/ejs/lib/ejs.js | |
diff --git a/lib/support/ejs/lib/ejs.js b/lib/support/ejs/lib/ejs.js | |
index 10a5c37..a6b9890 100644 | |
--- a/lib/support/ejs/lib/ejs.js | |
+++ b/lib/support/ejs/lib/ejs.js | |
@@ -12,6 +12,7 @@ exports.render = function(str, options) { | |
"var p=[],print=function(){p.push.apply(p,arguments);};" + | |
"with(locals){p.push('" + | |
str | |
+ .toString() | |
.replace(/[\r\t\n]/g, " ") | |
.split("<%").join("\t") | |
.replace(/((^|%>)[^\t]*)'/g, "$1\r") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment