diff --git a/public_html/deployment/classes/config-replacement.class.php b/public_html/deployment/classes/config-replacement.class.php index bab9519431cd67f9044b0c0aaad900aa4ab3c183..cacacc6cd8879900edd45601c8e169deefc94a91 100644 --- a/public_html/deployment/classes/config-replacement.class.php +++ b/public_html/deployment/classes/config-replacement.class.php @@ -169,7 +169,7 @@ class configreplacement { 'method'=>'GET', )); - // HACK: minify YAML of the host ... because it is too large for SPYC parser + // HACK: minify YAML of the host ... because it is too large for SPYC parser? $sPart="---\n"; $bCopy=false; foreach(explode("\n", $aData['body']) as $sLine){ @@ -193,9 +193,16 @@ class configreplacement { } // echo 'DEBUG: '.($bCopy ? 'COPY':'SKIP').$sLine.'<br>'; } - + if (strstr($sPart, '|-')){ + echo 'WARNING: the chars "|-" were found:<br><pre> ' + .str_replace('|-', '<span class="replace">|-</span>', $sPart) + .'</pre><br>'; + } require_once __DIR__.'./../../vendor/spyc/spyc.php'; + + // echo 'DEBUG: <pre>'.print_r(spyc_load($aData['body']), 1).'</pre>'; $aYaml=spyc_load($sPart); + // echo 'DEBUG: <pre>'.print_r($aYaml, 1).'</pre>'; $aReturn=array(); foreach ($aYaml as $aProject){