Checks whether or not a file is filtered.
When the whitelist is empty (default), blacklisting is used. When the whitelist is not empty, whitelisting is used.
string $filename:
boolean $ignoreWhitelist:
boolean
public function isFiltered($filename) {
$filename = realpath($filename);
if (!empty($this->whitelistedFiles)) {
return !isset($this->whitelistedFiles[$filename]);
}
if (!$this->blacklistPrefilled) {
$this
->prefillBlacklist();
}
return isset($this->blacklistedFiles[$filename]);
}