Ignore:
Timestamp:
2003-01-12T21:38:58+13:00 (21 years ago)
Author:
sjboddie
Message:

Prevent occurances of 70 or more hyphens in metadata values from causing txt2db to
wrongly treat them as a separator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgbuildproc.pm

    r3148 r3665  
    314314        $value =~ s/\n/\\n/g;
    315315        $value =~ s/\r/\\r/g;
     316        if ($value =~ /-{70,}/) {
     317            # if value contains 70 or more hyphens in a row we need
     318            # to escape them to prevent txt2db from treating them
     319            # as a separator
     320            $value =~ s/-/&\#045;/gi;
     321        }
    316322
    317323        # special case for URL metadata
Note: See TracChangeset for help on using the changeset viewer.