tellbot 0.6.0.7 → 0.6.0.8
raw patch · 3 files changed
+7/−2 lines, 3 files
Files
- CHANGELOG.md +4/−0
- src/HTML.hs +2/−1
- tellbot.cabal +1/−1
CHANGELOG.md view
@@ -1,6 +1,10 @@ tellbot CHANGELOG ================= +### 0.6.0.8++- Fixed IRC colors change in HTML title.+ ### 0.6.0.7 - Fixed IRC injection in HTML title.
src/HTML.hs view
@@ -2,6 +2,7 @@ import Control.Exception ( SomeException, catch ) import Data.ByteString.Lazy ( toStrict )+import Data.Char import Network.HTTP.Conduit import Data.Text as T ( concat, lines, pack, strip, unpack ) import Data.Text.Encoding ( decodeUtf8 )@@ -32,7 +33,7 @@ dropTillTitle (_:xs) = dropTillTitle xs chomp :: String -> String-chomp = filter (`notElem` "\r\n") . unpack . strip . pack+chomp = filter (\c -> isAlphaNum c || isPunctuation c || c == ' ') . unpack . strip . pack -- Filter an URL so that we don’t make overviews of unknown hosts. Pretty -- cool to prevent people from going onto sensitive websites.
tellbot.cabal view
@@ -1,5 +1,5 @@ name: tellbot-version: 0.6.0.7+version: 0.6.0.8 synopsis: IRC tellbot description: An IRC bot that can be used to create queuing message. It also offers a simple administration IRC bot interface.