aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-01 18:34:39 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-01 18:34:39 +0000
commit3e0077f54dc451a551360f7af9b5a9c96b3253af (patch)
tree95698e5d44754a6e91ce9cea793c7671504919b2 /activerecord/lib/active_record
parent07989b64f47112d7e501e2114284dec322ac2c6c (diff)
downloadrails-3e0077f54dc451a551360f7af9b5a9c96b3253af.tar.gz
rails-3e0077f54dc451a551360f7af9b5a9c96b3253af.tar.bz2
rails-3e0077f54dc451a551360f7af9b5a9c96b3253af.zip
Fixed a bug in the Ruby/MySQL that caused binary content to be escaped badly and come back mangled #405 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/vendor/mysql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/vendor/mysql.rb b/activerecord/lib/active_record/vendor/mysql.rb
index 4970f77bd3..84f5d2533c 100644
--- a/activerecord/lib/active_record/vendor/mysql.rb
+++ b/activerecord/lib/active_record/vendor/mysql.rb
@@ -1091,7 +1091,7 @@ class << Mysql
when "\0" then "\\0"
when "\n" then "\\n"
when "\r" then "\\r"
- when "\032" then "\Z"
+ when "\032" then "\\Z"
else "\\"+$1
end
end