Update colona.v1.format.php
This commit is contained in:
parent
ecf6c9bca4
commit
96874a7cae
|
@ -15,7 +15,14 @@ if(!check_function_exists("decode_colona_format") {
|
||||||
foreach($lines as $line) {
|
foreach($lines as $line) {
|
||||||
$pos = strpos($line, $delimiter);
|
$pos = strpos($line, $delimiter);
|
||||||
|
|
||||||
if($pos !== false) {
|
if($eof) {
|
||||||
|
if($line == "EOF;") {
|
||||||
|
$jobargs[$jobkey] = $jobvalue;
|
||||||
|
$eof = false;
|
||||||
|
} else {
|
||||||
|
$jobvalue .= $line;
|
||||||
|
}
|
||||||
|
} elseif($pos !== false) {
|
||||||
$jobkey = rtrim(substr($line, 0, $pos));
|
$jobkey = rtrim(substr($line, 0, $pos));
|
||||||
$jobvalue = ltrim(substr($line, $pos + strlen($delimiter)));
|
$jobvalue = ltrim(substr($line, $pos + strlen($delimiter)));
|
||||||
if($jobvalue == "<<<EOF") {
|
if($jobvalue == "<<<EOF") {
|
||||||
|
@ -24,13 +31,6 @@ if(!check_function_exists("decode_colona_format") {
|
||||||
} else {
|
} else {
|
||||||
$jobargs[$jobkey] = $jobvalue;
|
$jobargs[$jobkey] = $jobvalue;
|
||||||
}
|
}
|
||||||
} elseif($eof) {
|
|
||||||
if($line == "EOF;") {
|
|
||||||
$jobargs[$jobkey] = $jobvalue;
|
|
||||||
$eof = false;
|
|
||||||
} else {
|
|
||||||
$jobvalue .= $line;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user