- fixed some map commands

This commit is contained in:
Steffen Schröder
2013-11-27 02:42:39 +01:00
parent fc66d2d34b
commit c14c025df3
2 changed files with 26 additions and 14 deletions

View File

@ -7,7 +7,7 @@ namespace ManiaControl;
*
* @author steeffeen & kremsy
*/
class FileUtil {
abstract class FileUtil {
/**
* Load a remote file
@ -75,6 +75,16 @@ class FileUtil {
}
return simplexml_load_file($fileLocation);
}
/**
* Return file name cleared from special characters
*
* @param string $fileName
* @return string
*/
public static function getClearedFileName($fileName) {
return str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
}
}
?>