\PhpOffice\PhpSpreadsheet\Reader\SecurityXmlScanner

Summary

Methods
Properties
Constants
__construct()
getInstance()
threadSafeLibxmlDisableEntityLoaderAvailability()
shutdown()
__destruct()
setAdditionalCallback()
scan()
scanFile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
disableEntityLoaderCheck()
toUtf8()
$pattern
$callback
$libxmlDisableEntityLoaderValue
N/A

Properties

$pattern

$pattern : string

String used to identify risky xml elements.

Type

string

$callback

$callback

$libxmlDisableEntityLoaderValue

$libxmlDisableEntityLoaderValue

Methods

__construct()

__construct(mixed  $pattern = '<!DOCTYPE') : mixed

Parameters

mixed $pattern

Returns

mixed —

getInstance()

getInstance(\PhpOffice\PhpSpreadsheet\Reader\IReader  $reader) : mixed

Parameters

\PhpOffice\PhpSpreadsheet\Reader\IReader $reader

Returns

mixed —

threadSafeLibxmlDisableEntityLoaderAvailability()

threadSafeLibxmlDisableEntityLoaderAvailability() : mixed

Returns

mixed —

shutdown()

shutdown() : void

__destruct()

__destruct() : mixed

Returns

mixed —

setAdditionalCallback()

setAdditionalCallback(callable  $callback) : void

Parameters

callable $callback

scan()

scan(mixed  $xml) : string

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

Parameters

mixed $xml

Returns

string —

scanFile()

scanFile(string  $filestream) : string

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

Parameters

string $filestream

Returns

string —

disableEntityLoaderCheck()

disableEntityLoaderCheck() : void

toUtf8()

toUtf8(mixed  $xml) : mixed

Parameters

mixed $xml

Returns

mixed —