Skip to content

Commit

Permalink
Merge pull request #1245 from ttimasdf/patch-1
Browse files Browse the repository at this point in the history
Fix wrong parsing of webhook command
  • Loading branch information
ccrisan authored Apr 20, 2019
2 parents 86d9429 + 3822d19 commit 2ee010e
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 2ee010e

Please sign in to comment.