한글 로고 등록 오류시 처리
한글로 로고를 등록할 때 URL Encoding 되어 있는 한글 파일명이 SuiteCRM에 전달되는 경우가 있다.
이 경우 아래와 같이 처리를 하면 된다.
vi include/utils.php #— 파일의 4975 라인 앞에 urldecode 처리하는 라인을 추가 한다.
$path = urldecode($path); #— 이 라인을 추가
if (!file_exists($path) || !is_file($path)) {
$path = urldecode($path); #— 이 라인을 추가
if (!file_exists($path) || !is_file($path)) {
vi modules/Configurator/Configurator.php #— 파일의 283 라인 앞에 urldecode 처리하는 라인을 추가 한다.
$path = urldecode($path); #— 이 라인을 추가
copy($path,’custom/’. SugarThemeRegistry::current()->getDefaultImagePath(). ‘/company_logo.png’);
$path = urldecode($path); #— 이 라인을 추가
copy($path,’custom/’. SugarThemeRegistry::current()->getDefaultImagePath(). ‘/company_logo.png’);
mkdir -p cache/images #— 이미지 복사를 위해 사용하는 임시 폴더를 생성 한다.
댓글을 남겨주세요
토론에 참여하고 싶으세요?마음껏 기여하세요!