final class ApiEscapeRisk (View source)

Finds records that PowerDNS Auth 5.1.x would alter when they are written back through its REST API: it removes one level of backslash escaping from record content (PowerDNS issue 18159), so "a\b" is stored as "a\b" and "a\"b" is refused.

Methods

static bool
affects(string $content)

No description

static array
affectedRrsets(iterable $records)

Distinct "name TYPE" labels of the RRsets holding at least one affected record.

Details

static bool affects(string $content)

No description

Parameters

string $content

Return Value

bool

static array affectedRrsets(iterable $records)

Distinct "name TYPE" labels of the RRsets holding at least one affected record.

Parameters

iterable $records

Return Value

array