Actions

API17

Difference between revisions of "JMailHelper::cleanAddress"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JMailHelper::cleanAddress|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JMailHelper::cleanAddress|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JMailHelper::cleanAddress ($address)
+
public static function cleanAddress ($address)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string|false email address string or boolean false if injected headers are present.
string|false email address string or boolean false if injected headers are present.
+
* '''Defined''' on line 85 of libraries/joomla/mail/helper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/mail/helper.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JMailHelper::cleanAddress source code''' on [[jplatform:mail/helper.php#cl-77|BitBucket]]
 +
* {{JVer|11.1}} Class [[JMailHelper/11.1|JMailHelper]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Mail/11.1|Mail]]
 +
* [[JMailHelper::cleanAddress|Other versions of JMailHelper::cleanAddress]]
 +
{{SeeAlso:JMailHelper::cleanAddress}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JMailHelper::cleanAddress|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JMailHelper::cleanAddress|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JMailHelper/11.1|JMailHelper]]
+
===User contributed notes===
* [[JMailHelper::cleanAddress|Other versions of this method]]
+
{{SeeAlso:JMailHelper::cleanAddress}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 47: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JMailHelper]][[Category:JMailHelper::cleanAddress]]</noinclude>
 
<noinclude>[[Category:JMailHelper]][[Category:JMailHelper::cleanAddress]]</noinclude>

Revision as of 21:21, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JMailHelper::cleanAddress

Description

Verifies that an email address does not have any extra headers injected into it.

Description:JMailHelper::cleanAddress [Edit Descripton]

public static function cleanAddress ($address)
Parameter Type Default Description
$address string email address.
  • Returns string|false email address string or boolean false if injected headers are present.
  • Defined on line 85 of libraries/joomla/mail/helper.php
  • Since Joomla 11.1

See also

SeeAlso:JMailHelper::cleanAddress [Edit See Also]

User contributed notes

<CodeExamplesForm />