Changeset 23458

Show
Ignore:
Timestamp:
13.12.2010 14:24:37 (9 years ago)
Author:
kjdon
Message:

added a check that deduced_filename_encoding is defined before testing its value - it wasn't getting defined on kanuka

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r23457 r23458  
    896896        # => if not, then we have an "alien" filename on our hands 
    897897 
    898         if ($deduced_filename_encoding =~ m/^utf-?8$/i) { 
     898        if (defined $deduced_filename_encoding && $deduced_filename_encoding =~ m/^utf-?8$/i) { 
    899899        if (!&unicode::check_is_utf8($file)) { 
    900900            # "alien" filename, so revert