more Fixes

This commit is contained in:
genuineparts 2025-06-22 16:20:34 +02:00
parent 1d586553e0
commit 66a92263a5

View file

@ -146,7 +146,6 @@ class dump{
if($prefix!='as_'){
$this->file= preg_replace('/as_/',$prefix,$this->file);
}
$i=0;
$statements=array();
//HACK: We have ; in our Statements. This is to prevent String splitting there.
@ -155,9 +154,8 @@ class dump{
$lines=explode("\n",$this->file);
$this->file='';
$linecount= count($lines);
for ($i = 0; $i < count($lines); $i++){
if ( $lines[$i][0] != '#' && substr($lines[$i],0,2) != '--'){
if (!str_starts_with($lines[$i], '#') && !str_starts_with($lines[$i], '--')){
$this->file.=stripslashes($lines[$i]);
}
}