Limit note to 250000 chars

This commit is contained in:
2020-05-03 23:09:39 +00:00
parent ac9895f4de
commit e16dee917e
+1
View File
@@ -76,6 +76,7 @@ def new():
txt = request.form['txt'] txt = request.form['txt']
if not txt: raise if not txt: raise
if len(txt) > 250000: raise
db[nid] = txt db[nid] = txt
print('Adding note {}:\n{}'.format(nid, txt)) print('Adding note {}:\n{}'.format(nid, txt))