mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
parent
56aca19fd2
commit
482985aa4a
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ class Storage
|
|||
public static function isExecutable($path)
|
||||
{
|
||||
$path = rtrim($path, '/\\');
|
||||
if (function_exists('exec'))
|
||||
if (function_exists('exec') && !starts_with('win', \PHP_OS, false))
|
||||
{
|
||||
@exec('/bin/ls -l ' . escapeshellarg($path), $output, $return_var);
|
||||
if ($return_var === 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue