svn commit: samba r19140 - in branches/SAMBA_4_0/swat/scripting: .
derrell at samba.org
derrell at samba.org
Fri Oct 6 15:38:44 GMT 2006
Author: derrell
Date: 2006-10-06 15:38:43 +0000 (Fri, 06 Oct 2006)
New Revision: 19140
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19140
Log:
allow own authentication handling by jsonrpc apps
Modified:
branches/SAMBA_4_0/swat/scripting/common.js
Changeset:
Modified: branches/SAMBA_4_0/swat/scripting/common.js
===================================================================
--- branches/SAMBA_4_0/swat/scripting/common.js 2006-10-06 15:37:39 UTC (rev 19139)
+++ branches/SAMBA_4_0/swat/scripting/common.js 2006-10-06 15:38:43 UTC (rev 19140)
@@ -74,10 +74,18 @@
*/
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) {
More information about the samba-cvs
mailing list