mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-06 19:35:13 +02:00
7 lines
292 B
C++
7 lines
292 B
C++
// Baseline: expression is a compile-time constant. No taint reaches
|
|
// xmlXPathEvalExpression so no XPATH_INJECTION finding fires.
|
|
#include <libxml/xpath.h>
|
|
|
|
xmlXPathObjectPtr do_lookup(xmlXPathContextPtr ctx) {
|
|
return xmlXPathEvalExpression((xmlChar *)"//user[@role='admin']", ctx);
|
|
}
|