Changeset 7072 for platform/tdiary/util

Show
Ignore:
Timestamp:
02/23/08 23:00:33 (9 months ago)
Author:
sho
Message:

platform/tdiary/util/posttdiary/posttdiary.rb: fixed error when no body text in the mail.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/util/posttdiary/posttdiary.rb

    r4714 r7072  
    170170                end 
    171171                if use_subject then 
    172                         @body = "#{img_src}\n#{@body.sub( /\n+\z/, '' )}" 
     172                        @body = "#{img_src}\n#{(@body || '').sub( /\n+\z/, '' )}" 
    173173                else 
    174                         @body = "#{@body.sub( /\n+\z/, '' )}\n#{img_src}" 
     174                        @body = "#{(@body || '').sub( /\n+\z/, '' )}\n#{img_src}" 
    175175                end 
    176176        end 
     
    243243rescue 
    244244        $stderr.puts $! 
     245        $stderr.puts $@.join( "\n" ) 
    245246        File::delete( image_dir + image_name ) if image_dir and image_name and FileTest::exist?( image_dir + image_name ) 
    246247        exit 1