From 0f02fe3030c211013b9c4e6ec9004beddf0e56e8 Mon Sep 17 00:00:00 2001 From: Jason Farrell (zcat) Date: Sep 18 2011 23:35:25 +0000 Subject: really fixed this time --- diff --git a/fpaste b/fpaste index ca03c39..3336da0 100755 --- a/fpaste +++ b/fpaste @@ -73,10 +73,12 @@ def paste(text, options): # if sent data exceeds maxlength, server dies without error returned, so, we'll truncate the input here, # until the server decides to truncate instead of die - if len(options.desc) > 120: # limits from maxlength attr of fpaste.org form - title = options.desc[0:120-3] + "..." - if len(options.nick) > 30: - author = options.nick[0:30-3] + "..." + title = options.desc + author = options.nick + if len(title) > 120: # limits from maxlength attr of fpaste.org form + title = title[0:120-3] + "..." + if len(author) > 30: + author = author[0:30-3] + "..." params = urllib.urlencode({'title': title, 'author': author, 'lexer': options.lang, 'content': text, 'expire_options': options.expires}) pasteSizeKiB = len(params)/1024.0