Changeset 7949


Ignore:
Timestamp:
2004-08-16T14:02:12+12:00 (20 years ago)
Author:
mdewsnip
Message:

Added a bit of a hack for the wv 0.7.1 bug under Windows that causes embedded images to be broken. Ultimately the version of wvWare that we use should be updated (hopefully this bug will be fixed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/HTMLPlug.pm

    r7640 r7949  
    346346
    347347    $link =~ s/\n/ /g;
     348
     349    # Hack to overcome Windows wv 0.7.1 bug that causes embedded images to be broken
     350    # If the Word file path has spaces in it, wv messes up and you end up with
     351    #   absolute paths for the images, and without the "file://" prefix
     352    # So check for this special case and massage the data to be correct
     353    if ($ENV{'GSDLOS'} =~ /^windows/i && $self->{'plugin_type'} eq "WordPlug" && $link =~ /^[A-Za-z]\:/) {
     354    $link = "file://" . $link;
     355    $base_dir = "";
     356    }
     357
    348358    my ($href, $hash_part, $rl) = $self->format_link ($link, $base_dir, $file);
    349359
Note: See TracChangeset for help on using the changeset viewer.