Project

General

Profile

« Previous | Next » 

Revision 14220

Merged r14219 (#19537).

View differences:

branches/3.0-stable/app/models/mail_handler.rb
444 444
    subject.strip[0,255]
445 445
  end
446 446

  
447
  def self.full_sanitizer
448
    @full_sanitizer ||= HTML::FullSanitizer.new
449
  end
450

  
451 447
  def self.assign_string_attribute_with_limit(object, attribute, value, limit=nil)
452 448
    limit ||= object.class.columns_hash[attribute.to_s].limit || 255
453 449
    value = value.to_s.slice(0, limit)

Also available in: Unified diff