mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 06:09:04 -06:00
ubuntu is bad v4
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user