mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Added db_addslashes() function.
This commit is contained in:
parent
d212773f1e
commit
8994de9d73
@ -125,6 +125,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
function db_addslashes($str)
|
||||
{
|
||||
if (!IsSet($str) || $str == '')
|
||||
return '';
|
||||
|
||||
return addslashes($str);
|
||||
}
|
||||
|
||||
function to_timestamp($epoch)
|
||||
{
|
||||
return date('Y-m-d H:i:s',$epoch);
|
||||
|
@ -164,6 +164,14 @@
|
||||
return @pg_close($this->Link_ID);
|
||||
}
|
||||
|
||||
function db_addslashes($str)
|
||||
{
|
||||
if (!IsSet($str) || $str == '')
|
||||
return '';
|
||||
|
||||
return addslashes($str);
|
||||
}
|
||||
|
||||
/* I added the line and file section so we can have better error reporting. (jengo) */
|
||||
function query($Query_String, $line = '', $file = '')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user