mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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
This commit is contained in:
parent
240ae93b68
commit
ffde7ee32a
1 changed files with 0 additions and 2 deletions
|
@ -764,8 +764,6 @@ class Shell extends CakeObject {
|
|||
* @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) {
|
||||
|
|
Loading…
Reference in a new issue