HtmlExternalResolver class

HtmlExternalResolver class

Callback object used by HTML import routine to obtain referrenced objects such as images. Using this resolver could create a vulnurability when client provided HTML file will make server software to obtain local or network file. Use with caution. It is recommended not to specify HtmlExternalResolver at all (only embedded objects will be read) or create some subclass which checks if specified uri is valid.

The HtmlExternalResolver type exposes the following members:

Constructors

ConstructorDescription
__init__

Methods

MethodDescription
resolve_uriResolves the absolute URI from the base and relative URIs.
get_entityMaps a URI to an object containing the actual resource.

See Also