Skip to content

Commit

Permalink
Don't break UNC file paths
Browse files Browse the repository at this point in the history
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 ba1ddb3 commit 1610cba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Console/ConsoleIo.php
Expand Up @@ -540,12 +540,6 @@ public function helper($name, array $settings = [])
*/
public function createFile($path, $contents, $forceOverwrite = false)
{
$path = str_replace(
DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR,
DIRECTORY_SEPARATOR,
$path
);

$this->out();
$forceOverwrite = $forceOverwrite || $this->forceOverwrite;

Expand Down

0 comments on commit 1610cba

Please sign in to comment.