public function FilebrowserValidator::safeBaseName in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Services/FilebrowserValidator.php \Drupal\filebrowser\Services\FilebrowserValidator::safeBaseName()
1 call to FilebrowserValidator::safeBaseName()
- FilebrowserValidator::matchPath in src/
Services/ FilebrowserValidator.php - Helper function to match a pattern on the path
File
- src/
Services/ FilebrowserValidator.php, line 56
Class
Namespace
Drupal\filebrowser\ServicesCode
public function safeBaseName($path) {
$path = rtrim($path, '/');
$path = explode('/', $path);
return end($path);
}