SSL 로그인시 http에서 시도할 경우 발생하는 cross domain 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6769 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-09-01 06:32:35 +00:00
parent 616942c522
commit c6e637e9e8
4 changed files with 49 additions and 6 deletions

21
common/tpl/redirect.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<script type="text/javascript">
var idx = location.href.indexOf('?');
var url = top.location.href;
if(idx > -1 ) {
var query_string = location.href.substr(idx+1, location.href.length);
var args = {};
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
url = args['redirect_url'];
if(typeof(q)=="undefined" || !q) url = top.location.href.replace(/#(.*)$/i,'');
}
top.location.href = url;
</script>
</body>
</html>