Skip to content

Commit

Permalink
Fix wrong parsing of webhook command
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimasdf authored Apr 18, 2019
1 parent 86d9429 commit 3822d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions motioneye/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ def motion_camera_dict_to_ui(data):
except:
ui['email_notifications_picture_time_span'] = 0

elif e.count('webhook'):
elif e.count(' webhook '):
e = shlex.split(e)

if len(e) < 3:
Expand Down Expand Up @@ -1448,7 +1448,7 @@ def motion_camera_dict_to_ui(data):

command_storage = []
for e in on_movie_end:
if e.count('webhook'):
if e.count(' webhook '):
e = shlex.split(e)

if len(e) < 3:
Expand Down

0 comments on commit 3822d19

Please sign in to comment.