mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-06-30 22:18:19 -04:00
allow xsl requests to go through the authentication code
svn path=/icecast/trunk/icecast/; revision=13628
This commit is contained in:
parent
5a7111fc82
commit
9e078e714f
11
src/auth.c
11
src/auth.c
@ -391,6 +391,17 @@ static int add_authenticated_listener (const char *mount, mount_proxy *mountinfo
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
source_t *source = NULL;
|
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);
|
avl_tree_rlock (global.source_tree);
|
||||||
source = source_find_mount (mount);
|
source = source_find_mount (mount);
|
||||||
|
|
||||||
|
@ -868,20 +868,6 @@ static void _handle_get_request (client_t *client, char *passed_uri)
|
|||||||
if (uri != passed_uri) free (uri);
|
if (uri != passed_uri) free (uri);
|
||||||
return;
|
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);
|
auth_add_listener (uri, client);
|
||||||
if (uri != passed_uri) free (uri);
|
if (uri != passed_uri) free (uri);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user