Q&A

에디터 자동완성모듈 URL 카드 오류..

2019.10.09 10:25
308
0
0
CMS/프레임워크 Rhymix 1.9
개발 언어 PHP 7.1

image.png

 

위 오류가 뜨면서 카드가 안만들어지네요..

CentOS7, PHP 7.1.24 사용중입니다.

 

yum update 도 해봤구, epel-release 재설치, php-mcrypt 재설치도 해봤는데 같은증상이네요..

 

위에 해당 코드 찾아가봤는데

17
18
19
20
21
22
23
24
25
26
27
28
      function encodeImg($plaintext$password)
        {
 
            $password = hash('sha256'$password, true);
            $plaintext = gzcompress($plaintext);
            $iv_source = defined('MCRYPT_DEV_URANDOM') ? MCRYPT_DEV_URANDOM : MCRYPT_RAND;
            $iv = mcrypt_create_iv(32, $iv_source);
            $ciphertext = openssl_encrypt('rijndael-256'$password$plaintext'cbc'$iv);
            $hmac = hash_hmac('sha256'$ciphertext$password, true);
            return base64_encode($ciphertext $iv $hmac);
        }

       $iv = mcrypt_create_iv(32, $iv_source);

코드입니다.

혹시 해결 방법 아시는분 계실까요.. ?

댓글 0