Changeset 3732


Ignore:
Timestamp:
2003-02-16T14:04:38+13:00 (21 years ago)
Author:
jrm21
Message:

need to escape ",", "<", and ">" in title metadata

File:
1 edited

Legend:

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

    r3540 r3732  
    113113        $title = substr ($title, 0, 100) . "...";
    114114    }
     115        $title =~ s/\[/&#91;/g;
     116        $title =~ s/\[/&#93;/g;
     117        $title =~ s/\</&#60;/g;
     118        $title =~ s/\>/&#62;/g;
    115119    $doc_obj->add_utf8_metadata ($cursection, "Title", $title);
    116120    }
Note: See TracChangeset for help on using the changeset viewer.