mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
captcha 애드온의 exec_xml 후킹으로 인한 로그인 오류 문제 예상 부분 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5816 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
436998f59d
commit
64ba5bac08
1 changed files with 6 additions and 8 deletions
|
|
@ -32,13 +32,13 @@ var calledArgs = null;
|
||||||
|
|
||||||
body.append(captchaXE);
|
body.append(captchaXE);
|
||||||
|
|
||||||
captchaXE.exec= function(act, args) {
|
captchaXE.exec= function(module, act, params, callback_func, response_tags, callback_func_arg, fo_obj) {
|
||||||
if(act == 'procBoardInsertDocument' || act == 'procBoardInsertComment' || act == 'procIssuetrackerInsertIssue' || act == 'procIssuetrackerInsertHistory') {
|
if(act == 'procBoardInsertDocument' || act == 'procBoardInsertComment' || act == 'procIssuetrackerInsertIssue' || act == 'procIssuetrackerInsertHistory') {
|
||||||
oldExecXml('captcha','setCaptchaSession',new Array(),this.show,new Array('error','message','about','keyword'));
|
oldExecXml('captcha','setCaptchaSession',new Array(),this.show,new Array('error','message','about','keyword'));
|
||||||
calledArgs = args;
|
calledArgs = args;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
oldExecXml(args.module, args.act,args.params,args.callback_func,args.response_tags,args.callback_func_arg,args.fo_obj);
|
oldExecXml(module, act, params, callback_func, response_tags, callback_func_arg, fo_obj);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -101,11 +101,9 @@ var calledArgs = null;
|
||||||
return captchaXE;
|
return captchaXE;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(window).ready(function(){
|
$(window).load(function(){
|
||||||
oldExecXml = exec_xml;
|
oldExecXml = exec_xml;
|
||||||
exec_xml = null;
|
exec_xml = xeCaptcha().exec;
|
||||||
var newFunc = function(module, act, params, callback_func, response_tags, callback_func_arg, fo_obj) {xeCaptcha().exec(act, {module:module, act:act,params:params,callback_func:callback_func,response_tags:response_tags,callback_func_arg:callback_func_arg,fo_obj:fo_obj})};
|
|
||||||
exec_xml = newFunc;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue