feat: Remove slash from HNSChat name before saving
This commit is contained in:
parent
1c0e0059c1
commit
8f1b141828
25
main.py
25
main.py
@ -199,17 +199,20 @@ def send_edit():
|
|||||||
|
|
||||||
# Json data
|
# Json data
|
||||||
data = db.get_website_data_raw(user['domain'])
|
data = db.get_website_data_raw(user['domain'])
|
||||||
data['data'] = request.form['data']
|
data['data'] = request.form['data'].strip()
|
||||||
data['HNS'] = request.form['hns']
|
data['HNS'] = request.form['hns'].strip()
|
||||||
data['BTC'] = request.form['btc']
|
data['BTC'] = request.form['btc'].strip()
|
||||||
data['ETH'] = request.form['eth']
|
data['ETH'] = request.form['eth'].strip()
|
||||||
data['hnschat'] = request.form['hnschat']
|
data['hnschat'] = request.form['hnschat'].strip()
|
||||||
data['location'] = request.form['location']
|
|
||||||
data['bg_colour'] = request.form['bg_colour']
|
data['hnschat'] = data['hnschat'].replace("/","").strip()
|
||||||
data['fg_colour'] = request.form['fg_colour']
|
|
||||||
data['text_colour'] = request.form['text_colour']
|
data['location'] = request.form['location'].strip()
|
||||||
data['email'] = request.form['email']
|
data['bg_colour'] = request.form['bg_colour'].strip()
|
||||||
data['template'] = request.form['template']
|
data['fg_colour'] = request.form['fg_colour'].strip()
|
||||||
|
data['text_colour'] = request.form['text_colour'].strip()
|
||||||
|
data['email'] = request.form['email'].strip()
|
||||||
|
data['template'] = request.form['template'].strip()
|
||||||
|
|
||||||
if 'hip2_display' in request.form:
|
if 'hip2_display' in request.form:
|
||||||
data['hip2_display'] = True
|
data['hip2_display'] = True
|
||||||
|
@ -74,7 +74,7 @@ def render(data,db_object):
|
|||||||
hide_addresses = True
|
hide_addresses = True
|
||||||
|
|
||||||
if hnschat != "":
|
if hnschat != "":
|
||||||
hnschat = "<a href='https://hns.chat/#message:"+hnschat+"' target='_blank'><img src='"+hns_icon+"' width='20px' height='20px' style='margin-right: 5px;'>" + hnschat + "</a>"
|
hnschat = "<a href='https://hns.chat/#message:"+hnschat+"' target='_blank'><img src='"+hns_icon+"' width='20px' height='20px' style='margin-right: 5px;'>" + hnschat + "/</a>"
|
||||||
if location != "":
|
if location != "":
|
||||||
location = "<img src='"+location_icon+"' width='20px' height='30px' style='margin-right: 5px;'>" + location
|
location = "<img src='"+location_icon+"' width='20px' height='30px' style='margin-right: 5px;'>" + location
|
||||||
if email != "":
|
if email != "":
|
||||||
|
Loading…
Reference in New Issue
Block a user