This commit is contained in:
Dylan Hackworth 2020-03-19 15:27:49 -05:00
parent 2e78289a2b
commit edf5c3d6fe
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ class MatrixModule(BotModule):
self.logger.error(f"Failed parsing response from url {url}. Error: {e}") self.logger.error(f"Failed parsing response from url {url}. Error: {e}")
return (title, description) return (title, description)
# Issue 63 patch - Title should not contain newlines or tabs
if title is not None:
assert isinstance(title, str)
title = title.replace('\n', '')
title = title.replace('\t', '')
return (title, description) return (title, description)
async def matrix_message(self, bot, room, event): async def matrix_message(self, bot, room, event):