mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
fix: missing null check for dict value (#2316)
This commit is contained in:
parent
8ba75befa8
commit
ca3a0784b8
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ def new_custom_alias_v3():
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
return jsonify(error="request body does not follow the required format"), 400
|
return jsonify(error="request body does not follow the required format"), 400
|
||||||
|
|
||||||
alias_prefix = data.get("alias_prefix", "").strip().lower().replace(" ", "")
|
alias_prefix_data = data.get("alias_prefix", "") or ""
|
||||||
|
alias_prefix = alias_prefix_data.strip().lower().replace(" ", "")
|
||||||
signed_suffix = data.get("signed_suffix", "") or ""
|
signed_suffix = data.get("signed_suffix", "") or ""
|
||||||
signed_suffix = signed_suffix.strip()
|
signed_suffix = signed_suffix.strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue