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:
parent
aaab47cb91
commit
de2eb8df0c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user