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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user