그누보드 4.37.33
4.37.33 (2015.08.12)
: 4.37.32 버전에서 버그가 있어 수정
글저장시 htmlpurifier 를 작동하지 않고 글읽기에서 htmlpurifier 를 작동하게 하였습니다.
bbs/write_update.php 가 아래와 같이 수정 되었습니다.
아래 코드를 삭제하시거나 주석 처리 하십시오.
//include_once($g4['path'] . '/lib/html_purifier.lib.php');
...
//$wr_content = html_purifier($wr_content);
bbs/view.php 가 아래와 같이 수정 되었습니다.
include_once($g4['path'] . '/lib/html_purifier.lib.php');
...
$view[content] = html_purifier($view[content]);
lib/common.lib.php 가 아래와 같이 수정 되었습니다.
iframe 태그를 사용하여 유튜브의 동영상을 재생하려는 경우에는 필히 수정해 주십시오
//return preg_replace("/\<([\/]?)(script|iframe|form|applet)([^\>]*)\>?/i", "<$1$2$3>", $code);
return preg_replace("/\<([\/]?)(script|form|applet)([^\>]*)\>?/i", "<$1$2$3>", $code);
: 4.37.32 버전에서 버그가 있어 수정
글저장시 htmlpurifier 를 작동하지 않고 글읽기에서 htmlpurifier 를 작동하게 하였습니다.
bbs/write_update.php 가 아래와 같이 수정 되었습니다.
아래 코드를 삭제하시거나 주석 처리 하십시오.
//include_once($g4['path'] . '/lib/html_purifier.lib.php');
...
//$wr_content = html_purifier($wr_content);
bbs/view.php 가 아래와 같이 수정 되었습니다.
include_once($g4['path'] . '/lib/html_purifier.lib.php');
...
$view[content] = html_purifier($view[content]);
lib/common.lib.php 가 아래와 같이 수정 되었습니다.
iframe 태그를 사용하여 유튜브의 동영상을 재생하려는 경우에는 필히 수정해 주십시오
//return preg_replace("/\<([\/]?)(script|iframe|form|applet)([^\>]*)\>?/i", "<$1$2$3>", $code);
return preg_replace("/\<([\/]?)(script|form|applet)([^\>]*)\>?/i", "<$1$2$3>", $code);
첨부파일
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 7개
감사합니다.
패치하고 이런 오류가 발생하는 경우는 처음인데 매우 당황스럽습니다.
참고로 제가 사용하는 호스팅의 PHP 버전은 PHP Version 4.4.7이고 MySQL 버전은 MySQL client version: 4.0.27입니다.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/home/totosoro/html/gnuboard4/htmlpurifier/HTMLPurifier.standalone.php on line 81