mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
voice_client: prevent malicious crontab injection through dayns #1008
This commit is contained in:
parent
a4b6d27172
commit
b2e60d696f
1 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue