ignore path conversion for URLs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2020-01-07 00:53:19 +00:00
parent 46f1242d03
commit fb8f171900
1 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,11 @@ public final class TestBugs extends BaseTestBugzillaIssues {
for (int i=0; i<refs.length; i+=2) {
HSSFWorkbook wb = new HSSFWorkbook();
wb.createSheet(refs[i]);
SIMPLE_REFS.put(refs[i+1].replace("/", File.separator), wb.getCreationHelper().createFormulaEvaluator());
String fileName = refs[i+1];
if (!fileName.contains("://")) {
fileName = fileName.replace("/", File.separator);
}
SIMPLE_REFS.put(fileName, wb.getCreationHelper().createFormulaEvaluator());
}
}