From ffde7ee32a299b64fb5dc2a8c824eaf9e4b92697 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 19 Oct 2018 22:08:39 -0400 Subject: [PATCH] Don't break UNC file paths Blindly replacing // causes network paths and paths with protocols to break. Relying on correct input allows the user to get what they want without the framework interfering. Refs #12657 --- lib/Cake/Console/Shell.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Cake/Console/Shell.php b/lib/Cake/Console/Shell.php index 90ee0eb38..3062dcfaf 100644 --- a/lib/Cake/Console/Shell.php +++ b/lib/Cake/Console/Shell.php @@ -764,8 +764,6 @@ class Shell extends CakeObject { * @link https://book.cakephp.org/2.0/en/console-and-shells.html#Shell::createFile */ public function createFile($path, $contents) { - $path = str_replace(DS . DS, DS, $path); - $this->out(); if (is_file($path) && empty($this->params['force']) && $this->interactive === true) {