Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
a30ecd2f
Commit
a30ecd2f
authored
Jan 07, 2014
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邮件标题乱码问题由框架处理
parent
9abf7295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
core/src/main/java/org/b3log/solo/service/CommentMgmtService.java
.../main/java/org/b3log/solo/service/CommentMgmtService.java
+2
-3
No files found.
core/src/main/java/org/b3log/solo/service/CommentMgmtService.java
View file @
a30ecd2f
...
@@ -20,7 +20,6 @@ import java.io.IOException;
...
@@ -20,7 +20,6 @@ import java.io.IOException;
import
java.net.URL
;
import
java.net.URL
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.inject.Inject
;
import
javax.inject.Inject
;
import
javax.mail.internet.MimeUtility
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.commons.lang.StringEscapeUtils
;
import
org.apache.commons.lang.StringEscapeUtils
;
import
org.apache.commons.lang.time.DateFormatUtils
;
import
org.apache.commons.lang.time.DateFormatUtils
;
...
@@ -56,7 +55,7 @@ import org.json.JSONObject;
...
@@ -56,7 +55,7 @@ import org.json.JSONObject;
* Comment management service.
* Comment management service.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
5, Jan 3
, 2014
* @version 1.0.0.
6, Jan 7
, 2014
* @since 0.3.5
* @since 0.3.5
*/
*/
@Service
@Service
...
@@ -222,7 +221,7 @@ public class CommentMgmtService {
...
@@ -222,7 +221,7 @@ public class CommentMgmtService {
mailBody
=
COMMENT_MAIL_HTML_BODY
.
replace
(
"{articleOrPage}"
,
"Page"
);
mailBody
=
COMMENT_MAIL_HTML_BODY
.
replace
(
"{articleOrPage}"
,
"Page"
);
}
}
message
.
setSubject
(
MimeUtility
.
encodeText
(
mailSubject
,
"UTF-8"
,
"B"
)
);
message
.
setSubject
(
mailSubject
);
final
String
commentName
=
comment
.
getString
(
Comment
.
COMMENT_NAME
);
final
String
commentName
=
comment
.
getString
(
Comment
.
COMMENT_NAME
);
final
String
commentURL
=
comment
.
getString
(
Comment
.
COMMENT_URL
);
final
String
commentURL
=
comment
.
getString
(
Comment
.
COMMENT_URL
);
String
commenter
;
String
commenter
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment