diff options
author | Alexandre Girard <git@alexgirard.com> | 2011-11-21 16:39:54 +0100 |
---|---|---|
committer | Alexandre Girard <git@alexgirard.com> | 2011-11-21 16:39:54 +0100 |
commit | 90e9d552f0ccf8b149b4a0150a3291d0c1a7d18f (patch) | |
tree | 1de2fad80452e00deb56d26a3689dcf86be2e265 | |
parent | 55a2f46ca90391e9446eff874b83e45a0161d252 (diff) | |
download | etherpad-lite-90e9d552f0ccf8b149b4a0150a3291d0c1a7d18f.zip |
fix issue with newline in APIKEY.txt when checking api key
-rw-r--r-- | node/handler/APIHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/handler/APIHandler.js b/node/handler/APIHandler.js index 57eeeb73..04464b08 100644 --- a/node/handler/APIHandler.js +++ b/node/handler/APIHandler.js @@ -70,7 +70,7 @@ var functions = { exports.handle = function(functionName, fields, req, res) { //check the api key! - if(fields["apikey"] != apikey) + if(fields["apikey"] != apikey.trim()) { res.send({code: 4, message: "no or wrong API Key", data: null}); return; |