public static function Imce::regularPath in IMCE 8
Same name and namespace in other branches
- 8.2 src/Imce.php \Drupal\imce\Imce::regularPath()
Checks the structure of a folder path.
Forbids current/parent directory notations.
3 calls to Imce::regularPath()
- Imce::folderInConf in src/
Imce.php - Returns predefined/inherited configuration.
- Imce::processUserFolders in src/
Imce.php - Processes user folders.
- ImceProfileForm::validateForm in src/
Form/ ImceProfileForm.php - Form validation handler.
File
- src/
Imce.php, line 239
Class
- Imce
- Imce container class for helper methods.
Namespace
Drupal\imceCode
public static function regularPath($path) {
return is_string($path) && ($path === '.' || !preg_match('@\\\\|(^|/)\\.*(/|$)@', $path));
}