Fix imports with that contain a slash

This commit is contained in:
Deon George
2018-12-25 22:50:16 +11:00
parent 128002f434
commit 8f5a9a307c
7 changed files with 52 additions and 24 deletions

View File

@@ -78,9 +78,9 @@ class FrameImport extends Command
$o->mode_id = $mo->id;
}
$o->content = ($this->option('trim'))
$o->content = str_replace('\\','\\\\',($this->option('trim'))
? substr(file_get_contents($this->argument('file')),40)
: file_get_contents($this->argument('file'));
: file_get_contents($this->argument('file')));
$o->access = $this->option('access');
$o->public = $this->option('public');