forked from rDrama/rDrama
limit orgy title to 40 chars to prevent overflow
parent
80e584822e
commit
fbf59bf8fd
|
@ -190,6 +190,9 @@ def schedule_orgy(v, chat_id):
|
||||||
if not title:
|
if not title:
|
||||||
abort(400, "A title is required!")
|
abort(400, "A title is required!")
|
||||||
|
|
||||||
|
if len(title) > 40:
|
||||||
|
abort(400, 'Title is too long (max 40 characters)')
|
||||||
|
|
||||||
normalized_link = normalize_url(link)
|
normalized_link = normalize_url(link)
|
||||||
|
|
||||||
if start_utc:
|
if start_utc:
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<label for="title">Title</label>
|
<label for="title">Title</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<input id="title" autocomplete="off" type="text" name="title" class="form-control" placeholder="Required" required>
|
<input id="title" autocomplete="off" type="text" name="title" class="form-control" maxlength="40" placeholder="Required" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-lg-flex border-bottom mt-3">
|
<div class="d-lg-flex border-bottom mt-3">
|
||||||
|
|
Loading…
Reference in New Issue