diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-01-30 21:06:35 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-01-30 21:06:35 +0000 |
commit | 522ee9c5545a80426d1e494204aee40541da8e01 (patch) | |
tree | de1518b4c9109129cc39aac87b282e6d6c1ad466 /src | |
parent | a3dfc463edaef1afceb12b81e802db8ba0e4b947 (diff) | |
download | poi-522ee9c5545a80426d1e494204aee40541da8e01.tar.gz poi-522ee9c5545a80426d1e494204aee40541da8e01.zip |
[bug-64108] unsafe pipe character (
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873384 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java | 2 | ||||
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java index 4d4b917ed4..a80ba95bc5 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java @@ -760,7 +760,7 @@ public final class PackagingURIHelper { }; private static boolean isUnsafe(int ch) { - return ch >= 0x80 || Character.isWhitespace(ch); + return ch >= 0x80 || ch == 0x7C || Character.isWhitespace(ch); } } diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java index 9969187422..3bbce458cb 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java @@ -127,7 +127,8 @@ public class TestPackagingURIHelper { "..\\cygwin\\home\\yegor\\dinom\\%5baccess%5d.2010-10-26.log", "#'Instructions (Text)'!B21", "#'性'!B21", - "javascript://" + "javascript://", + "#ctl||rId16||cmdAddAction||_x0000_i1029" }; for(String s : href){ |