handle potential newlines in output
This commit is contained in:
parent
977675c593
commit
e084c28113
@ -57,10 +57,10 @@ class TextTransform(Module):
|
||||
|
||||
whats = what.split(' ')
|
||||
if whats[0] == 'base64e' or whats[0] == 'base64':
|
||||
reply[0] = base64.encodestring(' '.join(whats[1:]))
|
||||
reply[0] = base64.encodestring(' '.join(whats[1:])).replace('\n','')
|
||||
return True
|
||||
if whats[0] == 'base64d':
|
||||
reply[0] = base64.decodestring(' '.join(whats[1:]))
|
||||
reply[0] = base64.decodestring(' '.join(whats[1:])).replace('\n','')
|
||||
return True
|
||||
|
||||
# vi:tabstop=4:expandtab:autoindent
|
||||
|
Loading…
Reference in New Issue
Block a user