Changeset 22536


Ignore:
Timestamp:
2010-07-31T23:23:32+12:00 (14 years ago)
Author:
max
Message:

Fix the bug where metadata containing back slashes would endlessly be escaped by new backslashes, making the metadata database grow exponentially when using incremental building.

File:
1 edited

Legend:

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

    r22296 r22536  
    509509
    510510        # escape problematic stuff
    511         $value =~ s/\\/\\\\/g;
     511        $value =~ s/([^\\])\\([^\\])/\1\\\\\2/g;
    512512        $value =~ s/\n/\\n/g;
    513513        $value =~ s/\r/\\r/g;
Note: See TracChangeset for help on using the changeset viewer.