summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-09-26 19:20:53 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-09-26 19:20:53 +0200
commitb3a3bf342903b32a79e8799860a61b93d7f28581 (patch)
tree2cf3f66cad81fdc6591971db82c11ba2eecb690f
parentaf03e056ce1a479dc9f1d6b0a88a6bcb06a31d3c (diff)
removed some legacy escaping code from _backup() in the MySQL utility, fixing bug 4536
http://codeigniter.com/bug_tracker/bug/4536/
-rw-r--r--system/database/drivers/mysql/mysql_utility.php9
-rw-r--r--user_guide/changelog.html1
2 files changed, 1 insertions, 9 deletions
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php
index 6fb1ab4bb..e035e0cf6 100644
--- a/system/database/drivers/mysql/mysql_utility.php
+++ b/system/database/drivers/mysql/mysql_utility.php
@@ -176,15 +176,6 @@ class CI_DB_mysql_utility extends CI_DB_utility {
}
else
{
- // Do a little formatting...
- $v = str_replace(array("\x00", "\x0a", "\x0d", "\x1a"), array('\0', '\n', '\r', '\Z'), $v);
- $v = str_replace(array("\n", "\r", "\t"), array('\n', '\r', '\t'), $v);
- $v = str_replace('\\', '\\\\', $v);
- $v = str_replace('\'', '\\\'', $v);
- $v = str_replace('\\\n', '\n', $v);
- $v = str_replace('\\\r', '\r', $v);
- $v = str_replace('\\\t', '\t', $v);
-
// Escape the data if it's not an integer
if ($is_int[$i] == FALSE)
{
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index a1afab1c4..7a0a251b7 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -112,6 +112,7 @@ SVN Revision: XXXX</p>
<li>Modified XSS sanitization to no longer add semicolons after &amp;[single letter], such as in M&amp;M's, B&amp;B, etc.</li>
<li>Modified XSS sanitization to no longer strip XHTML image tags of closing slashes.</li>
<li>Fixed a bug in the Session class when database sessions are used where upon session update all userdata would be errantly written to the session cookie.</li>
+ <li>Fixed a bug (#4536) in backups with the MySQL driver where some legacy code was causing certain characters to be double escaped.</li>
</ul>
<h2>Version 1.6.3</h2>