[bug-64108] unsafe pipe character (

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2020-01-30 21:06:35 +00:00
parent a3dfc463ed
commit 522ee9c554
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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){