mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Merge branch 'v3-stable' into beta
This commit is contained in:
commit
ebbfa11852
@ -257,34 +257,23 @@ function DB_RemoveBadChars($myString, $dbEngine = DB_MYSQL, $bForceStripSlahes =
|
||||
{
|
||||
if ( $dbEngine == DB_MSSQL )
|
||||
{
|
||||
//TODO STRIP SLASHES ?!
|
||||
// MSSQL needs special treatment -.-
|
||||
return str_replace("'","''",$myString);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Replace with internal PHP Functions!
|
||||
if ( !get_magic_quotes_gpc() || $bForceStripSlahes )
|
||||
return addslashes($myString);
|
||||
// return addcslashes($myString, "'");
|
||||
else
|
||||
return $myString;
|
||||
}
|
||||
|
||||
/*
|
||||
$returnstr = str_replace("\\","\\\\",$myString);
|
||||
$returnstr = str_replace("'","\\'",$returnstr);
|
||||
return $returnstr;
|
||||
*/
|
||||
}
|
||||
|
||||
function DB_StripSlahes($myString)
|
||||
{
|
||||
// Replace with internal PHP Functions!
|
||||
if ( get_magic_quotes_gpc() )
|
||||
// if ( get_magic_quotes_gpc() )
|
||||
return stripslashes($myString);
|
||||
else
|
||||
return $myString;
|
||||
// else
|
||||
// return $myString;
|
||||
}
|
||||
|
||||
function DB_ReturnLastInsertID($myResult = false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user