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))