diff options
author | David M <davidmj@users.sourceforge.net> | 2006-08-11 21:52:46 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-08-11 21:52:46 +0000 |
commit | 86f3d738a0efbf5c50bdf112841aba2c8b859e85 (patch) | |
tree | 6c7c34285132704577420d8f6b56545523018c71 /phpBB/includes/db/mysqli.php | |
parent | 9086adad3c5fb9454a6df9149fb3f4ab7987b8ef (diff) | |
download | forums-86f3d738a0efbf5c50bdf112841aba2c8b859e85.tar forums-86f3d738a0efbf5c50bdf112841aba2c8b859e85.tar.gz forums-86f3d738a0efbf5c50bdf112841aba2c8b859e85.tar.bz2 forums-86f3d738a0efbf5c50bdf112841aba2c8b859e85.tar.xz forums-86f3d738a0efbf5c50bdf112841aba2c8b859e85.zip |
so.... what does this thing do?
well, the super fast, ultra efficient, massively huge BBCode handling system was implemented differently on each DBMS. Although this provided the best performance, the solution was a bit hacky.
So what does this new thing do? We use base64 encoding to make everything nice and shiny, it turns into nice, safe characters that we can just jam into varchars on essentially any database. This has two implications: we must decode every bitfield we get AND we have slightly fewer IDs to work with. It goes down from 2040 BBCodes to 1512. We lose like a quarter of them :P
P.S. I hope nothing broke :P
git-svn-id: file:///svn/phpbb/trunk@6263 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysqli.php')
-rw-r--r-- | phpBB/includes/db/mysqli.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php index 46ddd55569..fa4d3ffdc7 100644 --- a/phpBB/includes/db/mysqli.php +++ b/phpBB/includes/db/mysqli.php @@ -311,16 +311,6 @@ class dbal_mysqli extends dbal return @mysqli_real_escape_string($this->db_connect_id, $msg); } - function sql_escape_binary($msg) - { - // If the last char is - if (substr($msg, -1) == ' ') - { - $msg .= "\0"; - } - return "'" . $this->sql_escape($msg) . "'"; - } - /** * Build db-specific query data * @access: private |