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 ba1ddb3 commit 1610cba8df84dd4beca3a8673ae00a9eec5957cb
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/Console/ConsoleIo.php
@@ -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;

0 comments on commit 1610cba

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.