[xiph-commits] r13628 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Sat Aug 25 09:04:33 PDT 2007


Author: karl
Date: 2007-08-25 09:04:33 -0700 (Sat, 25 Aug 2007)
New Revision: 13628

Modified:
   icecast/trunk/icecast/src/auth.c
   icecast/trunk/icecast/src/connection.c
Log:
allow xsl requests to go through the authentication code


Modified: icecast/trunk/icecast/src/auth.c
===================================================================
--- icecast/trunk/icecast/src/auth.c	2007-08-25 15:07:38 UTC (rev 13627)
+++ icecast/trunk/icecast/src/auth.c	2007-08-25 16:04:33 UTC (rev 13628)
@@ -391,6 +391,17 @@
     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);
 

Modified: icecast/trunk/icecast/src/connection.c
===================================================================
--- icecast/trunk/icecast/src/connection.c	2007-08-25 15:07:38 UTC (rev 13627)
+++ icecast/trunk/icecast/src/connection.c	2007-08-25 16:04:33 UTC (rev 13628)
@@ -868,20 +868,6 @@
         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);
 }



More information about the commits mailing list