Commit 30066521a5e43fe24775a23e0c710ed094f74858
1 parent
849b7bc125
Exists in
master
MODEM-TESTER: isNotBlacklistedCommand fixed
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
modem-tester.js
| ... | ... | @@ -38,7 +38,7 @@ async function writeToPortDelayed(data) { |
| 38 | 38 | |
| 39 | 39 | function isNotBlacklistedCommand(command) { |
| 40 | 40 | let [, cmd] = (command || '').trim().split('+'); |
| 41 | - cmd = cmd.replace(/=.*$/, ''); | |
| 41 | + cmd = (cmd || '').replace(/=.*$/, ''); | |
| 42 | 42 | return !config |
| 43 | 43 | && !config.modem_tester |
| 44 | 44 | && !config.modem_tester.skip_commands |