Changeset 6372


Ignore:
Timestamp:
2004-01-09T12:29:51+13:00 (20 years ago)
Author:
kjdon
Message:

changed the separator from File.separator to / cos the ids are URIs not file paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSEntityResolver.java

    r5979 r6372  
    1919        return new InputSource(system_id);
    2020        } else {
    21         temp_id = temp_id.substring(temp_id.lastIndexOf(File.separator)+1);
     21        temp_id = temp_id.substring(temp_id.lastIndexOf("/")+1);
    2222        }
    2323    } else {
    24         if (temp_id.indexOf(File.separatorChar)!= -1) {
    25         temp_id = temp_id.substring(temp_id.lastIndexOf(File.separator)+1);
     24        if (temp_id.indexOf("/")!= -1) {
     25        temp_id = temp_id.substring(temp_id.lastIndexOf("/")+1);
    2626        }
    2727    }
Note: See TracChangeset for help on using the changeset viewer.