aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-01 01:57:08 +0300
committerGravatar Vitaly Takmazov2017-11-01 01:57:08 +0300
commit3e87cc6a73fbfc165f81d5f7a3d7d1f76e7feb9a (patch)
tree68023133cec4261e38fa9ed56d26626553847e21 /juick-server-jdbc/src
parent20e19b4242f888aafe3c55f9dabe3af46728cbab (diff)
www: /post should not throw if img or attach is present
Diffstat (limited to 'juick-server-jdbc/src')
-rw-r--r--juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java b/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java
index 3d425648..69cde40b 100644
--- a/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java
+++ b/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java
@@ -17,6 +17,7 @@
package com.juick.database;
+import org.apache.commons.codec.CharEncoding;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
@@ -68,7 +69,7 @@ public class MySqlUpdater {
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(updateSqlResource);
) {
if (is != null) {
- String content = IOUtils.toString(is, StandardCharsets.UTF_8);
+ String content = IOUtils.toString(is, CharEncoding.UTF_8);
if (StringUtils.isNotEmpty(content)) {
String[] sqlArray = content.split(";");
if (sqlArray.length > 0) {