From 3e0077f54dc451a551360f7af9b5a9c96b3253af Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 1 Jan 2005 18:34:39 +0000 Subject: 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 --- activerecord/lib/active_record/vendor/mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3