Merge branch 'master' of github.com:Pita/etherpad-lite

This commit is contained in:
Peter 'Pita' Martischka 2011-11-25 16:08:24 -08:00
commit dc6d0cda68
7 changed files with 47 additions and 24 deletions

View file

@ -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;