From 0242f048fbbdd398305d5e6bf593a044e3c77316 Mon Sep 17 00:00:00 2001 From: Timoffei Bubigo Date: Thu, 11 Feb 2021 10:39:22 +0300 Subject: [PATCH] Replace to RAW parser --- app/Console/Commands/HRCCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/HRCCommand.php b/app/Console/Commands/HRCCommand.php index edc383a..830fdf1 100644 --- a/app/Console/Commands/HRCCommand.php +++ b/app/Console/Commands/HRCCommand.php @@ -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);