Ignore:
Timestamp:
2010-12-02T00:36:37+13:00 (13 years ago)
Author:
davidb
Message:

Further refinement of code to support HTML linking between documents when using non-ascii names on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/ghtml.pm

    r23362 r23371  
    6565sub urlsafe
    6666{
     67    # protect any hash's that are part of an entity, e.g. a
     68    $_[0] =~ s/&#(.*?);/&%23$1;/g;
     69
     70    # and the usual suspects
    6771    $_[0] =~ s/[\x09\x20\x22\x3c\x3e\x5b\x5c\x5d\x5e\x60\x7b\x7c\x7d\x7e\?\=\&\+_\/]/sprintf("%%%2x", ord($&))/gse;
    6872}
Note: See TracChangeset for help on using the changeset viewer.