voice_client: prevent malicious crontab injection through dayns #1008

This commit is contained in:
Jakob Olsson 2019-08-14 10:57:55 +02:00
parent a4b6d27172
commit b2e60d696f

View file

@ -61,6 +61,8 @@ set_ringing_schedule() {
[ -n "$dayns" ] && dayns="$dayns,$dayn" || dayns="$dayn"
done
[ "${dayns//[0-6,\-]/}" = "" ] || return
if [ $daymatch -eq 1 -a $current_time -gt ${start/:/} -a $current_time -lt ${stop/:/} ]; then
timematch=1
uci -q set voice_client.RINGING_STATUS.shouldring="$status"