From e16dee917e4efa6a88d6bf15962cabf1967f24a0 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 3 May 2020 23:09:39 +0000 Subject: [PATCH] Limit note to 250000 chars --- t0txt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/t0txt.py b/t0txt.py index 02d0759..351b76e 100644 --- a/t0txt.py +++ b/t0txt.py @@ -76,6 +76,7 @@ def new(): txt = request.form['txt'] if not txt: raise + if len(txt) > 250000: raise db[nid] = txt print('Adding note {}:\n{}'.format(nid, txt))