From: Derrell Lipman Date: Fri, 6 Oct 2006 15:38:43 +0000 (+0000) Subject: r19140: allow own authentication handling by jsonrpc apps X-Git-Tag: samba-4.0.0alpha6~801^3~4563 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=77fc14c0818498e277a79196fa4f6e15f4b607b1;p=samba.git r19140: allow own authentication handling by jsonrpc apps (This used to be commit de2eb8df0c1aa361adbf14a5984b1719e17f70cb) --- diff --git a/swat/scripting/common.js b/swat/scripting/common.js index 299a67c7020..fe25287a74c 100644 --- a/swat/scripting/common.js +++ b/swat/scripting/common.js @@ -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) {