Ignore:
Timestamp:
2017-03-09T14:35:57+13:00 (7 years ago)
Author:
kjdon
Message:

util::block_file moved to EncodingUtil::block_raw_filename

File:
1 edited

Legend:

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

    r31446 r31480  
    290290        if($unicode_url_original_filename ne $unicode_html_fname) {
    291291            # Allow for possibility of raw byte version and Unicode versions of file
    292             &util::block_filename($block_hash,$unicode_url_original_filename);
     292            $self->block_filename($block_hash,$unicode_url_original_filename);
    293293        }
    294294    }
    295295
    296296    # $url_original_filename = &util::upgrade_if_dos_filename($url_original_filename);
    297     &util::block_filename($block_hash,$url_original_filename) if $url_original_filename ne $html_fname;
     297    # TODO now use unicode files in block, do we need this??
     298    #$self->block_raw_filename($block_hash,$url_original_filename) if $url_original_filename ne $html_fname;
    298299
    299300    # but only add the linked file to the blocklist if the current html file does not link to itself
     
    12921293        $unicode_dirname = &unicode::raw_filename_to_url_encoded($dirname);
    12931294        }
    1294    
     1295        print STDERR "unicode dirname = ".&unicode::debug_unicode_string($unicode_dirname)."\n";
    12951296        $before_hash = &FileUtils::filenameConcatenate($unicode_dirname, $before_hash);
    12961297        $before_hash = $self->eval_dir_dots($before_hash);   
Note: See TracChangeset for help on using the changeset viewer.