Sha256: f98e02e995d767b3470336846628dcf431babf2eddb34efd25acb491e9e4eb9d
Contents?: true
Size: 350 Bytes
Versions: 26
Compression:
Stored size: 350 Bytes
Contents
# -*- coding: binary -*- module Rex module MIME # Set of helpers methods to deal with SMTP encoding related topics. module Encoding # Enforces CRLF on the input data # # @param data [String] The data to CRLF enforce. # @return [String] CRLF enforced data. def force_crlf(data) data.gsub("\r", '').gsub("\n", "\r\n") end end end end
Version data entries
26 entries across 26 versions & 4 rubygems