framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Utils/FileSystem.php
public static function secureFileName($fileName)
    {
      $_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
      $fileName = str_replace(array(":", "*", "?", "|", "/"), "_", $fileName);
      if ( $_config->getDisallowUnsafeCharacters() )
      {
        $fileName = str_replace(";", "_", $fileName);
      }
      if ($_config->forceAscii())
      {
        $fileName = CKFinder_Connector_Utils_FileSystem::convertToAscii($fileName);
      }
      return $fileName;
    }
public static function secureFileName($fileName)
    {
      $_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
      $fileName = str_replace(array(":", "*", "?", "|", "/"), "_", $fileName);
      if ( $_config->getDisallowUnsafeCharacters() )
      {
        $fileName = str_replace(";", "_", $fileName);
      }
      if ($_config->forceAscii())
      {
        $fileName = CKFinder_Connector_Utils_FileSystem::convertToAscii($fileName);
      }
      return $fileName;
    }
public static function secureFileName ( $ fileName ) { $ _config = & CKFinder_Connector_Core_Factory :: getInstance ( "Core_Config" ) ; $ fileName = str_replace ( array ( ":" , "*" , "?" , "|" , "/" ) , "_" , $ fileName ) ; if ( $ _config -> getDisallowUnsafeCharacters ( ) ) { $ fileName = str_replace ( ";" , "_" , $ fileName ) ; } if ( $ _config -> forceAscii ( ) ) { $ fileName = CKFinder_Connector_Utils_FileSystem :: convertToAscii ( $ fileName ) ; } return $ fileName ; }
Secure file name from unsafe characters

@param string $fileName
@access public
@static
@return string $fileName
Secure file name from unsafe characters