added two utility functions
This commit is contained in:
@@ -287,8 +287,13 @@ class Helper
|
||||
return (bool) self::findBinaryPath('ffmpeg');
|
||||
}
|
||||
// filename without extension
|
||||
public static function getBasicFilename($path){
|
||||
public static function getBasicFilename($path)
|
||||
{
|
||||
return pathinfo($path, PATHINFO_FILENAME);
|
||||
}
|
||||
public static function sanitize($string)
|
||||
{
|
||||
return filter_var($string, FILTER_SANITIZE_STRING);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
10031
package-lock.json
generated
10031
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user