fixed paging check

This commit is contained in:
Andris Reinman 2017-12-29 10:29:29 +02:00
parent caef2a637b
commit 2d2e4a1641
4 changed files with 10 additions and 6 deletions

View file

@ -181,7 +181,8 @@ module.exports = (db, server) => {
* @api {post} /dkim Create or update DKIM key for domain
* @apiName PostDkim
* @apiGroup DKIM
* @apiDescription Add a new DKIM key for a Domain or update existing one
* @apiDescription Add a new DKIM key for a Domain or update existing one. There can be single DKIM key
* registered for each domain name.
* @apiHeaderExample {json} Header-Example:
* {
* "X-Access-Token": "59fc66a03e54454869460e45"

View file

@ -23,7 +23,7 @@ const customJoi = Joi.extend(joi => ({
return this.createError('string.base64url', { v: value }, state, options);
}
try {
EJSON.parse(value);
EJSON.parse(Buffer.from(value, 'base64'));
} catch (E) {
return this.createError('string.ejson', { v: value }, state, options);
}

View file

@ -8,7 +8,10 @@
"test": "mongo --eval 'db.dropDatabase()' wildduck-test && redis-cli -n 13 flushdb && NODE_ENV=test grunt",
"apidoc": "apidoc -i lib/api/ -o docs/"
},
"keywords": ["imap", "mail server"],
"keywords": [
"imap",
"mail server"
],
"author": "Andris Reinman",
"license": "EUPL-1.1",
"devDependencies": {
@ -25,7 +28,7 @@
"icedfrisby": "^1.5.0",
"mailparser": "^2.1.0",
"markdown-toc": "^1.2.0",
"mocha": "^4.0.1",
"mocha": "^4.1.0",
"request": "^2.83.0"
},
"dependencies": {
@ -56,7 +59,7 @@
"nodemailer": "4.4.1",
"npmlog": "4.1.2",
"openpgp": "2.6.1",
"qrcode": "1.0.1",
"qrcode": "1.2.0",
"restify": "6.3.4",
"restify-logger": "2.0.1",
"seq-index": "1.1.0",

View file

@ -14,7 +14,7 @@ HOSTNAME="$1"
WILDDUCK_COMMIT="34a3243a4d6d9a67d39d872c08f3969bd548683e"
ZONEMTA_COMMIT="e058fccbf75a87c2d84df43e012ea579d2f9b481"
WEBMAIL_COMMIT="be67abbad78c0f912394e0aaaf699629477e3985"
WEBMAIL_COMMIT="fc2b8d52c972caa439fc1d0f9e1da42f6ea650cc"
HARAKA_VERSION="2.8.14" # do not use 2.8.16
HARAKA_PLUGIN_WILDDUCK_VERSION="1.7.1"