Replace to RAW parser

This commit is contained in:
2021-02-11 10:39:22 +03:00
parent c52fd9b268
commit 0242f048fb

View File

@@ -34,7 +34,7 @@ class HRCCommand extends Command
if($this->argument('source') != 'null') {
$source_file = CORE_PATH . '/temp/' . $this->argument('source');
Log::debug(file_get_contents($source_file));
$data = parse_ini_file($source_file);
$data = parse_ini_file($source_file, false, INI_SCANNER_RAW);
if (isset($data['raw_result'])) {
unset($data['raw_result']);
@@ -50,7 +50,7 @@ class HRCCommand extends Command
{
if($this->argument('source') != 'null') {
$source_file = CORE_PATH . '/temp/' . $this->argument('source');
$data = parse_ini_file($source_file);
$data = parse_ini_file($source_file, false, INI_SCANNER_RAW);
if (isset($data['raw_result'])) {
return json_decode(base64_decode($data['raw_result']), true);