original_string: protected function validateFileName($name)
      {
          if (!preg_match('/^[\w@\.\s_\-]+$/iu', $name)) {
              return false;
          }
  
          if (strpos($name, '..') !== false) {
              return false;
          }
  
          return true;
      }
code: protected function validateFileName($name)
      {
          if (!preg_match('/^[\w@\.\s_\-]+$/iu', $name)) {
              return false;
          }
  
          if (strpos($name, '..') !== false) {
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateFileName ( $ name ) { if ( ! preg_match ( '/^[\w@\.\s_\-]+$/iu' , $ name ) ) { return false ; } if ( strpos ( $ name , '..' ) !== false ) { return false ; } return true ; }
docstring: Validate a proposed media item file name.
  @param string
  @return bool
docstring_tokens: Validate a proposed media item file name .