Author: fanningpj Date: Mon May 27 20:00:04 2019 New Revision: 1860160 URL: http://svn.apache.org/viewvc?rev=1860160&view=rev Log: fix forbidden api issue
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java?rev=1860160&r1=1860159&r2=1860160&view=diff ============================================================================== --- poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java (original) +++ poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java Mon May 27 20:00:04 2019 @@ -450,7 +450,7 @@ public class MAPIMessage extends POIRead 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); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org