Browse Source

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
Mark Story 7 years ago
parent
commit
1610cba8df
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/Console/ConsoleIo.php

+ 0 - 6
src/Console/ConsoleIo.php

@@ -540,12 +540,6 @@ class ConsoleIo
      */
     public function createFile($path, $contents, $forceOverwrite = false)
     {
-        $path = str_replace(
-            DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR,
-            DIRECTORY_SEPARATOR,
-            $path
-        );
-
         $this->out();
         $forceOverwrite = $forceOverwrite || $this->forceOverwrite;