diff options
author | Adam Majer <adamm@zombino.com> | 2008-09-19 21:38:39 -0500 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-10-25 12:54:48 +0200 |
commit | 932dffc559ef188eb31d0223116e9da361833488 (patch) | |
tree | 3b0afabc3f70537b143b8c468182bcc329bbb4c9 /actionpack/lib/action_controller/cgi_ext/stdinput.rb | |
parent | 5c97d4ff29cfd944da751f01177a3024626d57bb (diff) | |
download | rails-932dffc559ef188eb31d0223116e9da361833488.tar.gz rails-932dffc559ef188eb31d0223116e9da361833488.tar.bz2 rails-932dffc559ef188eb31d0223116e9da361833488.zip |
Fix binary data corruption bug in PostgreSQL adaptor
1. Move the binary escape/unescape from column to the driver - we should store binary data AR just like most other adaptors
2. check to make sure we only unescape bytea data
PGresult.ftype( column ) == 17
that is passed to us in escaped format
PGresult.fformat( column ) == 0
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1063 state:committed]
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/stdinput.rb')
0 files changed, 0 insertions, 0 deletions