Changeset 33348 for platform/tdiary

Show
Ignore:
Timestamp:
05/16/09 22:28:04 (5 years ago)
Author:
sho
Message:

changed detecion of boundary (mainly support iPhone).

Files:
1 modified

Legend:

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

    r24963 r33348  
    113113        head, body = mail.split( /(?:\r?\n){2}/, 2 ) 
    114114 
    115         if head =~ /Content-Type:\s*Multipart\/Mixed.*boundary=\"(.*?)\"/im then 
     115        if head =~ %r|Content-Type:\s*Multipart/Mixed.*boundary="?(.*?)"?[\r\n]|im then 
    116116                if not image_dir or not image_url then 
    117117                        raise "no --image-path and --image-url options"