mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge with 3.7
This commit is contained in:
@@ -899,18 +899,4 @@ abstract class task_abstract
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Escape a shell command.
|
||||
*
|
||||
* As this function is buggy under windows, this method check the
|
||||
* environment
|
||||
*
|
||||
* @param string $command
|
||||
* @return string
|
||||
*/
|
||||
protected static function escapeShellCmd($command)
|
||||
{
|
||||
return defined('PHP_WINDOWS_VERSION_BUILD') ? escapeshellarg($command) : escapeshellcmd($command);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user