You are here

function imce_reg_dir in IMCE 6

Same name and namespace in other branches
  1. 6.2 imce.module \imce_reg_dir()
  2. 7 imce.module \imce_reg_dir()

Check if the directory name is regular.

2 calls to imce_reg_dir()
imce_clean_profile_fields in inc/admin.inc
Unset empty fields in thumbnails and directory paths.
imce_directory_info in inc/page.inc
Return the permissions for a directory that is accessed directly or indirectly. A child of a predefined directory in the directory list takes its parent's properties. If it has multiple parents, it gets the properties of the latter in the list.

File

./imce.module, line 190

Code

function imce_reg_dir($dirname) {
  return $dirname == '.' || is_string($dirname) && $dirname != '' && !preg_match('@(^\\s)|(^/)|(^\\./)|(\\s$)|(/$)|(/\\.$)|(\\.\\.)|(//)|(\\\\)|(/\\./)@', $dirname);
}