No tabs.
authorlain <lain@soykaf.club>
Sat, 31 Mar 2018 18:48:04 +0000 (20:48 +0200)
committerlain <lain@soykaf.club>
Sat, 31 Mar 2018 18:48:04 +0000 (20:48 +0200)
lib/pleroma/gopher/server.ex

index 17741a7a797abb37b63a5300be5ed126af4f0301..6a72e8dd0393405ca13f669c426f5a9ea972ea29 100644 (file)
@@ -50,6 +50,7 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do
   end
 
   def info(text) do
+    text = String.replace(text, ~r/[\t\r\n]/, " ")
     "#{text}\tfake\(NULL)\t0\r\n"
   end