Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
9e078e71
Commit
9e078e71
authored
Aug 25, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow xsl requests to go through the authentication code
svn path=/icecast/trunk/icecast/; revision=13628
parent
5a7111fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
src/auth.c
src/auth.c
+11
-0
src/connection.c
src/connection.c
+0
-14
No files found.
src/auth.c
View file @
9e078e71
...
...
@@ -391,6 +391,17 @@ static int add_authenticated_listener (const char *mount, mount_proxy *mountinfo
int
ret
=
0
;
source_t
*
source
=
NULL
;
/* Here we are parsing the URI request to see if the extension is .xsl, if
* so, then process this request as an XSLT request
*/
if
(
util_check_valid_extension
(
mount
)
==
XSLT_CONTENT
)
{
/* If the file exists, then transform it, otherwise, write a 404 */
DEBUG0
(
"Stats request, sending XSL transformed stats"
);
stats_transform_xslt
(
client
,
mount
);
return
0
;
}
avl_tree_rlock
(
global
.
source_tree
);
source
=
source_find_mount
(
mount
);
...
...
src/connection.c
View file @
9e078e71
...
...
@@ -868,20 +868,6 @@ static void _handle_get_request (client_t *client, char *passed_uri)
if
(
uri
!=
passed_uri
)
free
(
uri
);
return
;
}
/* Here we are parsing the URI request to see
** if the extension is .xsl, if so, then process
** this request as an XSLT request
*/
if
(
util_check_valid_extension
(
uri
)
==
XSLT_CONTENT
)
{
/* If the file exists, then transform it, otherwise, write a 404 */
DEBUG0
(
"Stats request, sending XSL transformed stats"
);
stats_transform_xslt
(
client
,
uri
);
if
(
uri
!=
passed_uri
)
free
(
uri
);
return
;
}
auth_add_listener
(
uri
,
client
);
if
(
uri
!=
passed_uri
)
free
(
uri
);
}
...
...
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