Documentation

XmlScanner
in package

Table of Contents

Methods

__construct()  : mixed
getInstance()  : self
scan()  : string
Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.
scanFile()  : string
Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.
setAdditionalCallback()  : void

Methods

__construct()

public __construct([string $pattern = '<!DOCTYPE' ]) : mixed
Parameters
$pattern : string = '<!DOCTYPE'

scan()

Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.

public scan(false|string $xml) : string
Parameters
$xml : false|string
Return values
string

scanFile()

Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.

public scanFile(string $filestream) : string
Parameters
$filestream : string
Return values
string

setAdditionalCallback()

public setAdditionalCallback(callable $callback) : void
Parameters
$callback : callable

        
On this page

Search results