Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
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
Openfire
Commits
fad60d88
Commit
fad60d88
authored
Aug 04, 2014
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #57 from surevine/dwd/redeyes-utf8
Added UTF-8 support for readme and changelog files
parents
65a31a79
060ba9fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
plugin-admin.jsp
src/web/plugin-admin.jsp
+14
-8
No files found.
src/web/plugin-admin.jsp
View file @
fad60d88
...
...
@@ -152,17 +152,17 @@
<%
if
(
showReadme
)
{
String
pluginName
=
ParamUtils
.
getParameter
(
request
,
"plugin"
);
Plugin
plugin
=
pluginManager
.
getPlugin
(
pluginName
);
StringBuilder
readmeString
=
new
StringBuilder
();
if
(
plugin
!=
null
)
{
File
readme
=
new
File
(
pluginManager
.
getPluginDirectory
(
plugin
),
"readme.html"
);
if
(
readme
.
exists
())
{
BufferedReader
in
=
null
;
try
{
in
=
new
BufferedReader
(
new
FileReader
(
readme
));
in
=
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
readme
),
"UTF8"
));
String
line
;
while
((
line
=
in
.
readLine
())
!=
null
)
{
%>
<%=
line
%>
<%
readmeString
.
append
(
line
);
readmeString
.
append
(
System
.
getProperty
(
"line.separator"
));
}
}
catch
(
IOException
ioe
)
{
...
...
@@ -179,23 +179,26 @@
}
}
}
%>
<%=
readmeString
%>
<%
return
;
}
%>
<%
if
(
showChangelog
)
{
String
pluginName
=
ParamUtils
.
getParameter
(
request
,
"plugin"
);
Plugin
plugin
=
pluginManager
.
getPlugin
(
pluginName
);
StringBuilder
changelogString
=
new
StringBuilder
();
if
(
plugin
!=
null
)
{
File
changelog
=
new
File
(
pluginManager
.
getPluginDirectory
(
plugin
),
"changelog.html"
);
if
(
changelog
.
exists
())
{
BufferedReader
in
=
null
;
try
{
in
=
new
BufferedReader
(
new
FileReader
(
changelog
));
in
=
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
changelog
),
"UTF8"
));
String
line
;
while
((
line
=
in
.
readLine
())
!=
null
)
{
%>
<%=
line
%>
<%
changelogString
.
append
(
line
);
changelogString
.
append
(
System
.
getProperty
(
"line.separator"
));
}
}
catch
(
IOException
ioe
)
{
...
...
@@ -212,6 +215,9 @@
}
}
}
%>
<%=
changelogString
%>
<%
return
;
}
%>
...
...
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