get_cookie 함수에서 md5 함수 중복 호출 수정

This commit is contained in:
chicpro
2014-11-10 13:11:53 +09:00
parent de8af9c9f1
commit 3857ab22d3

View File

@ -141,7 +141,7 @@ function get_cookie($cookie_name)
{
$cookie = md5($cookie_name);
if (array_key_exists($cookie, $_COOKIE))
return base64_decode($_COOKIE[md5($cookie_name)]);
return base64_decode($_COOKIE[$cookie]);
else
return "";
}