diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-01-07 14:45:12 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-01-07 14:45:12 +0000 |
commit | 493a689b1eddc2d8db2078e487596322ce86dfc2 (patch) | |
tree | 41b79f385ee8c6c5746abb90d6970e37f512417b /phpBB/db/mssql.php | |
parent | d2e324fe0bfd7ee20609453c873516682b914959 (diff) | |
download | forums-493a689b1eddc2d8db2078e487596322ce86dfc2.tar forums-493a689b1eddc2d8db2078e487596322ce86dfc2.tar.gz forums-493a689b1eddc2d8db2078e487596322ce86dfc2.tar.bz2 forums-493a689b1eddc2d8db2078e487596322ce86dfc2.tar.xz forums-493a689b1eddc2d8db2078e487596322ce86dfc2.zip |
We'll try and get it right this time ...
git-svn-id: file:///svn/phpbb/trunk@3265 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db/mssql.php')
-rw-r--r-- | phpBB/db/mssql.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/db/mssql.php b/phpBB/db/mssql.php index 6cf118b22a..c54067f822 100644 --- a/phpBB/db/mssql.php +++ b/phpBB/db/mssql.php @@ -403,14 +403,9 @@ class sql_db return ( $query_id ) ? mssql_free_result($query_id) : false; } - function sql_quote($sql) + function sql_escape($msg) { - return str_replace("\'", "''", $sql); - } - - function sql_escape($sql) - { - return str_replace("'", "''", str_replace('\\', '\\\\', $sql)); + return str_replace("'", "''", str_replace('\\', '\\\\', $msg)); } function sql_error($query_id = 0) |