%-- Document : auth_broker Created on : 2011. 1. 13, ¿ÀÀü 11:24:42 Author : bhs --%> <%@page contentType="text/html" pageEncoding="EUC-KR"%> <%@page import="kr.co.kihyun.lang.MString"%> <%@page import="org.slf4j.Logger"%> <%@page import="org.slf4j.LoggerFactory"%> <% Logger LOG = LoggerFactory.getLogger(this.getClass()); String strPostData1 = request.getParameter("SESSIONKEY1"); String strPostData4 = request.getParameter("SESSIONVAL1"); String strPostData2 = request.getParameter("SESSIONKEY2"); String strPostData5 = request.getParameter("SESSIONVAL2"); if (MString.isNull(strPostData1) || MString.isNull(strPostData4) || MString.isNull(strPostData2) || MString.isNull(strPostData5)) { LOG.error("SESSIONKEY1/SESSIONVAL1: {}/{}, SESSIONKEY2/SESSIONVAL2: {}/{}", new Object[] {strPostData1, strPostData4, strPostData2, strPostData5}); response.sendRedirect("/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?redirect=/auth_broker.jsp"); return; } Cookie cookie1 = null; Cookie cookie2 = null; //26.HTTP ÀÀ´äºÐÇÒ(addCookie)_CWE-113 : Update by KWON,HAN -- 2014.12.12 »çÅ·Π¿øº¹ÇÔ cookie1 = new Cookie(strPostData1, strPostData4); // // ÇØ´õ°ªÀÌ µÎ°³·Î ³ª´µ¾îÁö´Â °ÍÀ» ¹æÁöÇϱâ À§ÇØ ¿ÜºÎ¿¡¼ ÀԷµǴ \n°ú \rµîÀ» Á¦°ÅÇÑ´Ù. // String filtered_strPostData4 = strPostData4.replaceAll("\r", "").replaceAll("\n", ""); // // cookie1 = new Cookie(strPostData1, filtered_strPostData4); //====================================================================== cookie1.setPath("/"); cookie1.setDomain(request.getServerName().replace("ats", "")); response.addCookie(cookie1); //26.HTTP ÀÀ´äºÐÇÒ(addCookie)_CWE-113 : Update by KWON,HAN -- 2014.12.12 »çÅ·Π¿øº¹ÇÔ cookie2 = new Cookie(strPostData2, strPostData5); // ÇØ´õ°ªÀÌ µÎ°³·Î ³ª´µ¾îÁö´Â °ÍÀ» ¹æÁöÇϱâ À§ÇØ ¿ÜºÎ¿¡¼ ÀԷµǴ \n°ú \rµîÀ» Á¦°ÅÇÑ´Ù. // String filtered_strPostData5 = strPostData5.replaceAll("\r", "").replaceAll("\n", ""); // // cookie2 = new Cookie(strPostData1, filtered_strPostData5); //====================================================================== cookie2.setPath("/"); cookie2.setDomain(request.getServerName().replace("ats", "")); response.addCookie(cookie2); LOG.info("redirect url : {}", request.getParameter("redirect_url")); response.sendRedirect(request.getParameter("redirect_url")); %>