Fix bug #25262: find longest match in rewrites

git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226196 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ndw
2005-04-12 22:56:51 +00:00
parent 1de3bfa617
commit 14a328eab0

View File

@@ -1746,11 +1746,11 @@ public class Catalog {
}
}
}
}
if (prefix != null) {
// return the systemId with the new prefix
return prefix + systemId.substring(startString.length());
}
if (prefix != null) {
// return the systemId with the new prefix
return prefix + systemId.substring(startString.length());
}
// If there's a DELEGATE_SYSTEM entry in this catalog, use it
@@ -1878,11 +1878,11 @@ public class Catalog {
}
}
}
}
if (prefix != null) {
// return the systemId with the new prefix
return prefix + uri.substring(startString.length());
}
if (prefix != null) {
// return the systemId with the new prefix
return prefix + uri.substring(startString.length());
}
// If there's a DELEGATE_URI entry in this catalog, use it