Changeset 36777

Show
Ignore:
Timestamp:
02/17/10 02:55:17 (3 years ago)
Author:
drry
Message:

HTML5 READY!!!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/tiarra/trunk/module/Auto/FetchTitle.pm

    r36776 r36777  
    16001600  } 
    16011601 
    1602   if( my $loc = $headers->{Location} ) 
     1602  if( my $loc = $headers->{'Location'} ) 
    16031603  { 
    16041604    $DEBUG and $this->_debug($full_ch_name, "debug: has Location header: $loc"); 
     
    16631663  if( $enc eq 'auto' && $content2 =~ m{ 
    16641664                                       <meta(?:\s[^>]*?)?\s 
    1665                                        (?:http-equiv\s*=\s*(["'])Content-Type\1(?:\s[^>]*?)?\scontent\s*=\s*(["'])\w+/\w+(?:\+\w+)*\s*;\s*charset=([-\w]+)\2| 
    1666                                           content\s*=\s*(["'])\w+/\w+(?:\+\w+)*\s*;\s*charset=([-\w]+)\4(?:\s[^>]+?)?\shttp-equiv\s*=\s*(["'])Content-Type\6) 
     1665                                       (?:http-equiv\s*=\s*(["']?)Content-Type\1(?:\s[^>]*?)?\scontent\s*=\s*(["']?)\w+/\w+(?:\+\w+)*\s*;\s*charset=([-\w]+)\2| 
     1666                                          content\s*=\s*(["']?)\w+/\w+(?:\+\w+)*\s*;\s*charset=([-\w]+)\4(?:\s[^>]+?)?\shttp-equiv\s*=\s*(["']?)Content-Type\6| 
     1667                                          charset\s*=\s*(["']?)([-\w])+\7) 
    16671668                                       (?:\s[^>]*|/)?> 
    16681669                                     }ix ) 
    16691670  { 
    1670     my $e = lc($3 || $5); 
     1671    my $e = lc($3 || $5 || $8); 
    16711672    $enc = $e =~ /s\w*jis/     ? 'sjis' 
    16721673         : $e =~ /euc/         ? 'euc'