Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
9fb26c46
Commit
9fb26c46
authored
Jun 09, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Allow non-1-byte PATH_SEPARATOR in admin_send_response()
parent
442960ac
Pipeline
#178
passed with stage
in 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/admin.c
src/admin.c
+2
-3
No files found.
src/admin.c
View file @
9fb26c46
...
...
@@ -323,11 +323,10 @@ void admin_send_response(xmlDocPtr doc,
}
if
(
response
==
ADMIN_FORMAT_TRANSFORMED
)
{
char
*
fullpath_xslt_template
;
in
t
fullpath_xslt_template_len
;
size_
t
fullpath_xslt_template_len
;
ice_config_t
*
config
=
config_get_config
();
fullpath_xslt_template_len
=
strlen
(
config
->
adminroot_dir
)
+
strlen
(
xslt_template
)
+
2
;
fullpath_xslt_template_len
=
strlen
(
config
->
adminroot_dir
)
+
strlen
(
xslt_template
)
+
strlen
(
PATH_SEPARATOR
)
+
1
;
fullpath_xslt_template
=
malloc
(
fullpath_xslt_template_len
);
snprintf
(
fullpath_xslt_template
,
fullpath_xslt_template_len
,
"%s%s%s"
,
config
->
adminroot_dir
,
PATH_SEPARATOR
,
xslt_template
);
...
...
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