Skip to content

Commit

Permalink
Fixed issue: Proper quoting of values when creating a database backup
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 26, 2014
1 parent 390642a commit 31e4444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/admin/backupdb_helper.php
Expand Up @@ -164,9 +164,9 @@ function _outputRecords($sTableName, $aFieldNames, $aRecords)
{

if (isset($aRecord[$sFieldName]) && !is_null($aRecord[$sFieldName])) {
$sValue= addslashes($aRecord[$sFieldName]);
$sValue= addcslashes($aRecord[$sFieldName],"'");
$sValue = preg_replace("#\n#", "\\n", $sValue);
$sOutput.= '"' . $sValue . '"';
$sOutput.= "'" . $sValue . "'";
}
else
{
Expand Down

0 comments on commit 31e4444

Please sign in to comment.