Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions shuffle-tools/1.2.0/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@

data = {"numbers": targets, "body": body}

url = "https://shuffler.io/api/v1/functions/sendsms"
base = self.url if "shuffler.io" in self.url else "https://shuffler.io"
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
url = "%s/api/v1/functions/sendsms" % base
headers = {"Authorization": "Bearer %s" % apikey}
return requests.post(url, headers=headers, json=data, verify=False).text

Expand Down Expand Up @@ -226,7 +227,8 @@
except Exception as e:
pass

url = "https://shuffler.io/functions/sendmail"
base = self.url if "shuffler.io" in self.url else "https://shuffler.io"
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
url = "%s/functions/sendmail" % base
headers = {"Authorization": "Bearer %s" % apikey}
return requests.post(url, headers=headers, json=data).text

Expand Down
Loading