Skip to content

Commit

Permalink
Merge pull request #13 from LukeWCS/improvements
Browse files Browse the repository at this point in the history
MyOOSDumper 2.4.18 improvement: binary container
  • Loading branch information
r23 committed Feb 10, 2021
2 parents 42f8134 + 494f97a commit 1ae1116
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions msd/inc/functions_dump.php
Expand Up @@ -207,11 +207,22 @@ function get_content($db,$table)

for($j=0;$j<$num_felder;$j++)
{
if (!isset($row[$j])) $insert.='NULL,';
if (!isset($row[$j]))
$insert .= 'NULL,';
else
if ($row[$j]!='') $insert.='\''.mysqli_real_escape_string($config['dbconnection'], $row[$j]).'\',';
{
$fieldinfo = mysqli_fetch_field_direct($result, $j);
if (($fieldinfo->flags & 128) == true)
if ($row[$j] != '')
$insert .= '_binary 0x' . bin2hex($row[$j]) . ',';
else
$insert .= '_binary \'\',';
else
$insert.='\'\',';
if ($row[$j] != '')
$insert .= '\'' . mysqli_real_escape_string($config['dbconnection'], $row[$j]) . '\',';
else
$insert .= '\'\',';
}
}
$insert=substr($insert,0,-1).');'.$nl;
$dump['data'].=$insert;
Expand Down

0 comments on commit 1ae1116

Please sign in to comment.