1

주제: 리샘플링 기능 이용시 콘텐트 출력이 안되는 현상

*테스트 조건
  리샘플링 기능을 이용하는 것으로 셋팅한 상태
  외부 글을 긁어서 복사해 붙여넣은 경우(img 태그가 표준을 따르지 못하는 경우)

  <img src='...' />  가 아닌 <img src='...' > 형태

*결과
  콘텐트 영역이 출력되지 않는 현상 발생

*조치

  ./library/view/view.php 의

  function getEntryContentView 에서

preg_match_all("@<img.+src=['\"](.+)['\"](.*)/>@Usi", $view, $images, PREG_SET_ORDER);
$view = preg_replace("@<img.+src=['\"].+['\"].*/>@Usi", '[#####_#####_#####_image_#####_#####_#####]', $view);

을

preg_match_all("@<img.+src=['\"](.+)['\"](.*)>@Usi", $view, $images, PREG_SET_ORDER);
$view = preg_replace("@<img.+src=['\"](.+)['\"](.*)>@Usi", '[#####_#####_#####_image_#####_#####_#####]', $view);

으로 수정

2

답글: 리샘플링 기능 이용시 콘텐트 출력이 안되는 현상

버전정보가 빠졌네요
Textcube 1.7.6
~^.^~