XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Security Class Reference

Public Member Functions

 __construct ($var=NULL)
 
 encodeHTML ()
 
 _encodeHTML ($var, $name=array())
 

Static Public Member Functions

static detectingXEE ($xml)
 check XML External Entity More...
 

Public Attributes

 $_targetVar = NULL
 

Detailed Description

Definition at line 11 of file Security.class.php.

Constructor & Destructor Documentation

Security::__construct (   $var = NULL)
Parameters
mixed$varTarget context
Returns
void

Definition at line 25 of file Security.class.php.

Member Function Documentation

Security::_encodeHTML (   $var,
  $name = array() 
)

Convert special characters to HTML entities for the target variables.

Parameters
mixed$var
array$name
Returns
mixed

Definition at line 112 of file Security.class.php.

static Security::detectingXEE (   $xml)
static

check XML External Entity

See Also
from drupal. https://github.com/drupal/drupal/commit/90e884ad0f7f2cf269d953f7d70966de9fd821ff
Parameters
string$xml
Returns
bool

Definition at line 186 of file Security.class.php.

Security::encodeHTML ( )
  • Convert special characters to HTML entities for the target variables.
  • The results of conversion are equivalent to the results of htmlspecialchars() which is a native function of PHP. string $varName. A variable's name to convert to process properties of an object or elements of an array, separate the owner(object or array) and the item(property or element) using a dot(.)
    Returns
    mixed

Definition at line 37 of file Security.class.php.

Member Data Documentation

Security::$_targetVar = NULL

Definition at line 18 of file Security.class.php.


The documentation for this class was generated from the following file: