Changeset 987 for trunk/cgi-bin/ljlib.pl

Show
Ignore:
Timestamp:
04/14/02 21:42:21 (11 years ago)
Author:
bradfitz
Message:

<lj user=avva>: UTF-8 bug fix: HTML form elements send nulls. seperate
before validating utf-8-ness.

Files:
1 modified

Legend:

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

    r982 r987  
    53685368        return ! (grep { !LJ::is_utf8($_) } values %{$text}); 
    53695369    } 
     5370    if (ref ($text) eq "ARRAY") { 
     5371        return ! (grep { !LJ::is_utf8($_) } @{$text}); 
     5372    } 
    53705373    return LJ::is_utf8($text); 
    53715374}