Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
PHPMailer
secureHeader
PHPMailer::secureHeader PHP Method
PHPMailer Class Documentation
显示文件
Open project: phpmailer/phpmailer
secureHeader()
public
method
Strip newlines to prevent header injection.
public
secureHeader
(
string
$str
) :
string
$str
string
return
string
public function secureHeader($str) { return trim(str_replace(array("\r", "\n"), '', $str)); }
PHPMailer
DKIM_Add
DKIM_BodyC
DKIM_HeaderC
DKIM_QP
DKIM_Sign
__construct
__destruct
_mime_types
addAddress
addAnAddress
addAttachment
addBCC
addCC
addCustomHeader
addEmbeddedImage
addOrEnqueueAnAddress
addReplyTo
addStringAttachment
addStringEmbeddedImage
addrAppend
addrFormat
alternativeExists
attachAll
attachmentExists
base64EncodeWrapMB
clearAddresses
clearAllRecipients
clearAttachments
clearBCCs
clearCCs
clearCustomHeaders
clearQueuedAddresses
clearReplyTos
createBody
createHeader
doCallback
edebug
encodeFile
encodeHeader
encodeQ
encodeQP
encodeQPphp
encodeString
endBoundary
filenameToType
fixEOL
generateId
getAllRecipientAddresses
getAttachments
getBccAddresses
getBoundary
getCcAddresses
getCustomHeaders
getLastMessageID
getMailMIME
getReplyToAddresses
getSMTPInstance
getSentMIMEMessage
getToAddresses
getTranslations
has8bitChars
hasLineLongerThanMax
hasMultiBytes
headerLine
html2text
idnSupported
inlineImageExists
isError
isHTML
isMail
isQmail
isSMTP
isSendmail
lang
mailPassthru
mailSend
mb_pathinfo
msgHTML
normalizeBreaks
parseAddresses
postSend
preSend
punyencodeAddress
rfcDate
secureHeader
send
sendmailSend
serverHostname
set
setError
setFrom
setLanguage
setMessageType
setWordWrap
sign
smtpClose
smtpConnect
smtpSend
textLine
utf8CharBoundary
validateAddress
wrapText