Commit 6a93ad27 authored by nanahira's avatar nanahira

byte limit

parent 61dc6677
......@@ -340,7 +340,7 @@ def route_admin_songs_id_delete(id):
@app.cache.cached(timeout=15, query_string=True)
def route_api_preview():
song_id = request.args.get('id', None)
if not song_id or not re.match('^[0-9]+$', song_id):
if not song_id or not re.match('^[0-9]{1,9}}$', song_id):
abort(400)
song_id = int(song_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment