diff options
-rwxr-xr-x | minimunin | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,8 +18,8 @@ main() { | |||
18 | while read command arg; do | 18 | while read command arg; do |
19 | 19 | ||
20 | # chomp | 20 | # chomp |
21 | command=`printf %s "${command}" | /usr/bin/tr -d '\r'` | 21 | command=`printf %s "${command}" | /usr/bin/tr -cd '[:alnum:]_-. '` |
22 | arg=`printf %s "${arg}" | /usr/bin/tr -d '\r'` | 22 | arg=`printf %s "${arg}" | /usr/bin/tr -cd '[:alnum:]_-. '` |
23 | 23 | ||
24 | # printf "%s %s\n" "$command" "$arg" >> /var/log/minimunin.log | 24 | # printf "%s %s\n" "$command" "$arg" >> /var/log/minimunin.log |
25 | # dispatch commands | 25 | # dispatch commands |