Changeset 16812

Show
Ignore:
Timestamp:
15.08.2008 13:57:21 (11 years ago)
Author:
ak19
Message:

Undid the changes introduced in the last commit which url encode the href_link and web_url, since the database can manage UTF8 keys after all after making some small change to GDBMWrapper. While previous changes got interlinking htmls with multilingual filenames working for GS3 they failed for GS2 (for which they were previously working). Now it should hopefully work for both.

Files:
1 modified

Legend:

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

    r16799 r16812  
    717717    $web_url = $web_url.$utf8_file; 
    718718    } 
    719     # URL encode this in unison with web_url since database lookup via Java code does not handle utf8-encoded keys 
    720     $web_url = &unicode::url_encode($web_url); 
    721719#    print STDERR "#### weburl: $web_url\n"; 
    722720 
     
    10801078    if (($rl == 0) || ($filename =~ m/$self->{'process_exp'}/) ||  
    10811079    ($href =~ m/\/$/) || ($href =~ m/^(mailto|news|gopher|nntp|telnet|javascript):/i)) { 
    1082     # URL encode this in unison with web_url since database lookup via Java code does not handle utf8-encoded keys 
    1083     # No longer need to &ghtml::urlsafe($href) for special characters, since the entire thing is going to be URL-encoded 
    1084     $href = &unicode::url_encode($href); 
     1080    &ghtml::urlsafe ($href); 
    10851081    return $front . "_httpextlink_&rl=" . $rl . "&href=" . $href . $hash_part . $back; 
    10861082    } else {