* in case of I/O error
*/
private String getInfoTag(URL source, String key) throws IOException {
- key += "=";
+ key = "^" + key + "=";
File file;
try {
try {
String value = getLine(infoIn, key, 0);
if (value != null && !value.isEmpty()) {
- value = value.trim().substring(key.length()).trim();
+ value = value.trim().substring(key.length() - 1).trim();
if (value.startsWith("'") && value.endsWith("'")
|| value.startsWith("\"") && value.endsWith("\"")) {
value = value.substring(1, value.length() - 1).trim();
}
-
+
return value;
}
} finally {