Changeset 874

Show
Ignore:
Timestamp:
02/24/02 21:36:53 (11 years ago)
Author:
bradfitz
Message:

<lj user=thefife> patch: make http:// not case sensitive when auto-linking
(section 2.1 of RFC1738 confirms this is the right thing to do)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/cleanhtml.pl

    r857 r874  
    198198 
    199199            if ($addbreaks && ! $opencount{'a'}) { 
    200                 $token->[1] =~ s!http://[a-z0-9A-Z_\-\.\/\?\%\+\=\~\:\;\#\&\,]+!$url{++$urlcount}=$&;"\{url$urlcount\}";!eg; 
     200                $token->[1] =~ s!http://[a-z0-9A-Z_\-\.\/\?\%\+\=\~\:\;\#\&\,]+!$url{++$urlcount}=$&;"\{url$urlcount\}";!egi; 
    201201            } 
    202202            if ($wordlength) {