Merge pull request #716 from chmod4755/fix-encoding-plus-character

fix regex of character +
pull/789/head
lyy 4 years ago committed by GitHub
commit bebc9b926d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      PublicComponent/src/main/java/com/arialyy/aria/orm/SqlUtil.java

@ -352,7 +352,7 @@ final class SqlUtil {
* @return 编码后的字符串 * @return 编码后的字符串
*/ */
static String encodeStr(String str) { static String encodeStr(String str) {
str = str.replaceAll("\\\\+", "%2B"); str = str.replaceAll("\\+", "%2B");
return URLEncoder.encode(str); return URLEncoder.encode(str);
} }

Loading…
Cancel
Save