Commit 59cbe00a authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Limit length of etherpad urls

/close #45
parent 12015614
......@@ -244,7 +244,7 @@ class Protocol(DatabaseModel):
if self.pad_identifier is None:
identifier = self.get_identifier()
if self.protocoltype.non_reproducible_pad_links:
identifier = "{}-{}".format(identifier, str(uuid4()))
identifier = "{}-{}".format(identifier, str(uuid4()).replace("-", ""))[:50]
self.pad_identifier = identifier
db.session.commit()
return get_etherpad_url(self.pad_identifier)
......
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