From: Yegor Kozlov Date: Mon, 27 Feb 2012 15:21:40 +0000 (+0000) Subject: Bugzilla 52583 - fixed WorkbookUtil#createSafeSheetName to escape colon X-Git-Tag: REL_3_8_FINAL~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b7638611bdd4e9d9b3dfcbb229c902f28da5710;p=poi.git Bugzilla 52583 - fixed WorkbookUtil#createSafeSheetName to escape colon git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1294180 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/util/WorkbookUtil.java b/src/java/org/apache/poi/ss/util/WorkbookUtil.java index 767e1327e2..8008844b8a 100644 --- a/src/java/org/apache/poi/ss/util/WorkbookUtil.java +++ b/src/java/org/apache/poi/ss/util/WorkbookUtil.java @@ -35,7 +35,7 @@ public class WorkbookUtil { *
  • never null
  • *
  • minimum length is 1
  • *
  • maximum length is 31
  • - *
  • doesn't contain special chars: / \ ? * ] [
  • + *
  • doesn't contain special chars: : 0x0000, 0x0003, / \ ? * ] [
  • *
  • Sheet names must not begin or end with ' (apostrophe)
  • * * Invalid characters are replaced by one space character ' '. @@ -57,6 +57,9 @@ public class WorkbookUtil { for (int i=0; i