Changeset 30600 for main


Ignore:
Timestamp:
2016-07-04T16:03:52+12:00 (8 years ago)
Author:
ak19
Message:

An empty metadata.xml was unrecognised by MetadataXMLPlugin because the self-closing root tag in the XML file was not matched in the regex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/MetadataXMLPlugin.pm

    r29817 r30600  
    181181    return 1; # its a file for us
    182182    }
     183
    183184    return 0;
    184185}
     
    194195    while (defined (my $line = <XMLIN>)) {
    195196        ## find the root element
    196         if ($line =~ /<([\w\d:]+)[\s>]/){
     197        if ($line =~ /<([\w\d:]+)[\s\/>]/){
    197198        my $root = $1;
    198199        if ($root !~ $doctype){
Note: See TracChangeset for help on using the changeset viewer.