Skip to content
Permalink
Browse files

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
  • Loading branch information...
markstory committed Oct 20, 2018
1 parent 240ae93 commit ffde7ee32a299b64fb5dc2a8c824eaf9e4b92697
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Cake/Console/Shell.php
@@ -764,8 +764,6 @@ public function clear() {
* @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) {

0 comments on commit ffde7ee

Please sign in to comment.
You can’t perform that action at this time.