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 # return False
else: else:
return False return False
@app.route('/hidden<id>/help') @app.route('/hidden<id>/help')
@login_required @login_required
def hidden_help(id): def hidden_help(id):
if id != app.config['HIDDEN_URL']: id = str(id).strip()
return '{} != {}'.format(id, app.config['HIDDEN_URL']) val = str(app.config['HIDDEN_URL']).strip()
if id != val:
return '{} != {}'.format(id, val)
else: else:
return render_template('hidden_help.html') return render_template('hidden_help.html')
@app.route('/hidden<id>') @app.route('/hidden<id>')
@login_required @login_required
def hidden(id): def hidden(id):
if id != app.config['HIDDEN_URL']: id = str(id).strip()
return '{} != {}'.format(id, app.config['HIDDEN_URL']) val = str(app.config['HIDDEN_URL']).strip()
if id != val:
return '{} != {}'.format(id, val)
# Handled within request # Handled within request
tags = request.args.get('tags') or 'trap' tags = request.args.get('tags') or 'trap'
try: try: