git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
213f0d6
)
r19140: allow own authentication handling by jsonrpc apps
author
Derrell Lipman
<derrell@samba.org>
Fri, 6 Oct 2006 15:38:43 +0000
(15:38 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:39 +0000
(14:20 -0500)
(This used to be commit
de2eb8df0c1aa361adbf14a5984b1719e17f70cb
)
swat/scripting/common.js
patch
|
blob
|
history
diff --git
a/swat/scripting/common.js
b/swat/scripting/common.js
index 299a67c7020b1da922eb75e55270500ee21644d0..fe25287a74c1aa6b434db4ba2731ca9fdcfe51c1 100644
(file)
--- 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) {