You are here

public function FilebrowserValidator::whiteListed in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/Services/FilebrowserValidator.php \Drupal\filebrowser\Services\FilebrowserValidator::whiteListed()

File

src/Services/FilebrowserValidator.php, line 39

Class

FilebrowserValidator

Namespace

Drupal\filebrowser\Services

Code

public function whiteListed($file, $pattern) {
  return trim($pattern) == '' || $this
    ->matchPath($file, $pattern);
}