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 240ae93 commit ffde7ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Cake/Console/Shell.php
Expand Up @@ -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) {
Expand Down

0 comments on commit ffde7ee

Please sign in to comment.