1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r19140: allow own authentication handling by jsonrpc apps

This commit is contained in:
Derrell Lipman 2006-10-06 15:38:43 +00:00 committed by Gerald (Jerry) Carter
parent aaab47cb91
commit de2eb8df0c

View File

@ -74,10 +74,18 @@ function page_footer() {
*/
function always_allowed(uri) {
var str = string_init();
/* allow jsonrpc-based applications to do their own authentication */
var s = str.split('/', uri);
if (s[0] == "" && s[1] == 'apps') {
return true;
}
var s = str.split('.', uri);
if (s.length < 2) {
return false;
}
var ext = s[s.length-1];
var allowed = new Array("ico", "gif", "png","css", "js");
for (i in allowed) {