aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2019-05-27 20:00:04 +0000
committerPJ Fanning <fanningpj@apache.org>2019-05-27 20:00:04 +0000
commit0ccbf4671d343f561a8850f92ff852c1355dc5dd (patch)
tree19b57004841f1cc110a8369a522f32d44b0cc914 /src
parent23439196563153faa1d921cf255a408085cb7c2b (diff)
downloadpoi-0ccbf4671d343f561a8850f92ff852c1355dc5dd.tar.gz
poi-0ccbf4671d343f561a8850f92ff852c1355dc5dd.zip
fix forbidden api issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java b/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
index ef2771b9fe..15a961ab66 100644
--- a/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
+++ b/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
@@ -450,7 +450,7 @@ public class MAPIMessage extends POIReadOnlyDocument {
if (headers != null && headers.length > 0) {
Pattern p = Pattern.compile("content-type:.*?charset=[\"']?([^;'\"]+)[\"']?", Pattern.CASE_INSENSITIVE);
for (String header : headers) {
- if (header.toLowerCase().startsWith("content-type")) {
+ if (header.toLowerCase(LocaleUtil.getUserLocale()).startsWith("content-type")) {
Matcher m = p.matcher(header);
if (m.matches()) {
String encoding = m.group(1);