creesch / discordIRCd

A node.js script that allows you to connect to discord with your irc client.
Apache License 2.0
115 stars 21 forks source link

parseDiscordLine will try to parse attachment url/filename #13

Closed Scrxtchy closed 7 years ago

Scrxtchy commented 7 years ago

As it stands, the filenames/urls of a message are susceptible to being parsed from markdown to IRC formatting. This can return an invalid url being displayed on the IRC client

creesch commented 7 years ago

Oh, interesting. I suppose this is with urls that have a bunch of underscores in them?

Scrxtchy commented 7 years ago

Pretty much, I'm certain that a filename with the underscores will underscore the entire proceeding url afterwards until the filename is used again at the end of the url