lang:

PHP

regex:

include_once\s?(\(|'|\"|$).*\\$.*$

description:

Potential file inclusion with file sourced from a variable.
tags:
file include
results