Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
center/messaging/trx-center.js
| ... | ... | @@ -104,6 +104,10 @@ function generateRequestId(req) { |
| 104 | 104 | |
| 105 | 105 | function executePrepaidBuy(paramsFromTransport, cb) { |
| 106 | 106 | const tokens = paramsFromTransport.msg.trim().split(/[\., ]+/); |
| 107 | + if (!tokens || tokens.length < 3) { | |
| 108 | + cb(null, {msg: 'Invalid command'}); | |
| 109 | + return; | |
| 110 | + } | |
| 107 | 111 | |
| 108 | 112 | const qs = { |
| 109 | 113 | request_id: tokens[3], |
package-lock.json