Replace to RAW parser
This commit is contained in:
@@ -34,7 +34,7 @@ class HRCCommand extends Command
|
|||||||
if($this->argument('source') != 'null') {
|
if($this->argument('source') != 'null') {
|
||||||
$source_file = CORE_PATH . '/temp/' . $this->argument('source');
|
$source_file = CORE_PATH . '/temp/' . $this->argument('source');
|
||||||
Log::debug(file_get_contents($source_file));
|
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'])) {
|
if (isset($data['raw_result'])) {
|
||||||
unset($data['raw_result']);
|
unset($data['raw_result']);
|
||||||
@@ -50,7 +50,7 @@ class HRCCommand extends Command
|
|||||||
{
|
{
|
||||||
if($this->argument('source') != 'null') {
|
if($this->argument('source') != 'null') {
|
||||||
$source_file = CORE_PATH . '/temp/' . $this->argument('source');
|
$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'])) {
|
if (isset($data['raw_result'])) {
|
||||||
return json_decode(base64_decode($data['raw_result']), true);
|
return json_decode(base64_decode($data['raw_result']), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user