Permalink
Browse files

fixed regression in the Finder component (it was possible to use it w…

…ithout using exec before, closes #6357)
  • Loading branch information...
1 parent 8d43930 commit cb69bde6ca536221aa74cf48bb82d9d68f42fea2 @fabpot fabpot committed Jan 25, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 Shell/Shell.php
View
@@ -52,7 +52,11 @@ public function testCommand($command)
{
if (self::TYPE_WINDOWS === $this->type) {
// todo: find a way to test if windows command exists
- return true;
+ return false;
+ }
+
+ if (!function_exists('exec')) {
+ return false;
}
// todo: find a better way (command could not be available)

0 comments on commit cb69bde

Please sign in to comment.