From 51ccbad170074678870f6808cc744730a1a88ee6 Mon Sep 17 00:00:00 2001 From: Majna Date: Thu, 3 Nov 2011 21:34:32 +0100 Subject: [PATCH] Fixing ignored '--exclude-plugins' option on Windows for Extract task. --- lib/Cake/Console/Command/Task/ExtractTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/ExtractTask.php b/lib/Cake/Console/Command/Task/ExtractTask.php index 08f00ad65..50c8c94b5 100644 --- a/lib/Cake/Console/Command/Task/ExtractTask.php +++ b/lib/Cake/Console/Command/Task/ExtractTask.php @@ -606,7 +606,7 @@ class ExtractTask extends Shell { if (!empty($this->_exclude)) { $exclude = array(); foreach ($this->_exclude as $e) { - if ($e[0] !== DS) { + if (DS !== '\\' && $e[0] !== DS) { $e = DS . $e; } $exclude[] = preg_quote($e, '/');