Skip to content

Commit

Permalink
safe escape password, I assume we need this?
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jul 24, 2019
1 parent 8b81603 commit 925169f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook/zmes_hook_helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def download_files(args):
filename2_bbox = g.config['image_path'] + '/' + args['eventid'] + '-snapshot-bbox.jpg'

url = g.config['portal'] + '/index.php?view=image&eid=' + args['eventid'] + '&fid=alarm' + \
'&username=' + g.config['user'] + '&password=' + g.config['password']
'&username=' + g.config['user'] + '&password=' + urllib.parse.quote(g.config['password'],safe='')
durl = g.config['portal'] + '/index.php?view=image&eid=' + args['eventid'] + '&fid=alarm' + \
'&username=' + g.config['user'] + '&password=*****'

Expand Down

0 comments on commit 925169f

Please sign in to comment.