ubuntu is bad v4

This commit is contained in:
Xevion
2019-06-30 05:51:44 -05:00
parent af8b5f1c5b
commit a77db8893e

View File

@@ -88,20 +88,24 @@ def boolparse(string, default=False):
# return False
else:
return False
@app.route('/hidden<id>/help')
@login_required
def hidden_help(id):
if id != app.config['HIDDEN_URL']:
return '{} != {}'.format(id, app.config['HIDDEN_URL'])
id = str(id).strip()
val = str(app.config['HIDDEN_URL']).strip()
if id != val:
return '{} != {}'.format(id, val)
else:
return render_template('hidden_help.html')
@app.route('/hidden<id>')
@login_required
def hidden(id):
if id != app.config['HIDDEN_URL']:
return '{} != {}'.format(id, app.config['HIDDEN_URL'])
id = str(id).strip()
val = str(app.config['HIDDEN_URL']).strip()
if id != val:
return '{} != {}'.format(id, val)
# Handled within request
tags = request.args.get('tags') or 'trap'
try: