forked from indymedia/epicyon
Ensure that there is an extra newline
parent
6997ae6e96
commit
80f7d85eb2
|
@ -2896,6 +2896,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
newswireTrustedFilename = baseDir + '/accounts/newswiretrusted.txt'
|
newswireTrustedFilename = baseDir + '/accounts/newswiretrusted.txt'
|
||||||
if fields.get('trustedNewswire'):
|
if fields.get('trustedNewswire'):
|
||||||
newswireTrusted = fields['trustedNewswire']
|
newswireTrusted = fields['trustedNewswire']
|
||||||
|
if not newswireTrusted.endswith('\n'):
|
||||||
|
newswireTrusted += '\n'
|
||||||
trustFile = open(newswireTrustedFilename, "w+")
|
trustFile = open(newswireTrustedFilename, "w+")
|
||||||
if trustFile:
|
if trustFile:
|
||||||
trustFile.write(newswireTrusted)
|
trustFile.write(newswireTrusted)
|
||||||
|
|
Loading…
Reference in New Issue