Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
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-1
Commits
bb5d5822
Unverified
Commit
bb5d5822
authored
Sep 10, 2018
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
#12500
parent
4371bd9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/main/java/org/b3log/solo/processor/console/PageConsole.java
...in/java/org/b3log/solo/processor/console/PageConsole.java
+6
-3
No files found.
src/main/java/org/b3log/solo/processor/console/PageConsole.java
View file @
bb5d5822
...
...
@@ -17,6 +17,7 @@
*/
package
org
.
b3log
.
solo
.
processor
.
console
;
import
org.apache.commons.lang.StringEscapeUtils
;
import
org.b3log.latke.Keys
;
import
org.b3log.latke.Latkes
;
import
org.b3log.latke.ioc.inject.Inject
;
...
...
@@ -46,7 +47,7 @@ import javax.servlet.http.HttpServletResponse;
* Plugin console request processing.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
4, Mar 3
, 2018
* @version 1.0.0.
5, Sep 10
, 2018
* @since 0.4.0
*/
@RequestProcessor
...
...
@@ -423,15 +424,17 @@ public class PageConsole {
final
JSONObject
result
=
pageQueryService
.
getPages
(
requestJSONObject
);
final
JSONArray
pages
=
result
.
optJSONArray
(
Page
.
PAGES
);
// Site-internal URLs process
for
(
int
i
=
0
;
i
<
pages
.
length
();
i
++)
{
final
JSONObject
page
=
pages
.
getJSONObject
(
i
);
if
(
"page"
.
equals
(
page
.
optString
(
Page
.
PAGE_TYPE
)))
{
final
String
permalink
=
page
.
optString
(
Page
.
PAGE_PERMALINK
);
page
.
put
(
Page
.
PAGE_PERMALINK
,
Latkes
.
getServePath
()
+
permalink
);
}
String
title
=
page
.
optString
(
Page
.
PAGE_TITLE
);
title
=
StringEscapeUtils
.
escapeXml
(
title
);
page
.
put
(
Page
.
PAGE_TITLE
,
title
);
}
result
.
put
(
Keys
.
STATUS_CODE
,
true
);
...
...
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