vendor/gems/emk-safe_erb-0.1.2/lib/safe_erb/sqlite3_fix.rb
# Add taint to data returned from SQLite3 database.  This is based on a
# patch by Koji Shimada:
# http://rubyforge.org/tracker/index.php?func=detail&aid=20325&group_id=254&atid=1045
Add taint to data returned from SQLite3 database.
Add taint to data returned from SQLite3 database .
def next_with_tainting
      row = next_without_tainting
      case row
      when Hash
        row.each {|key, value| value.taint }
      when Array
        row.each {|column| column.taint }
      end
      row
    end
def next_with_tainting row = next_without_tainting case row when Hash row . each { | key , value | value . taint } when Array row . each { | column | column . taint } end row end
Add taint to data returned from SQLite3 database.
Add taint to data returned from SQLite3 database .