issuetrackerModel::getChangesets() 에서 commit 메시지에 HTML 코드가 들어갈 경우 timeline 목록에서 레이아웃 깨지는 것을 방지하기 위해 htmlspecialchars() 함수를 적용

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6164 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mooo 2009-04-22 07:43:12 +00:00
parent 7a17619b13
commit 09599e7f99
2 changed files with 16 additions and 22 deletions

View file

@ -157,7 +157,7 @@
return $output;
}
function getList($module_srl, $listname)
function getList($module_srl, $listname)
{
if(!$module_srl) return array();
@ -201,7 +201,7 @@
return $histories;
}
function getPackageList($module_srl, $package_srl=0, $each_releases_count = 0)
function getPackageList($module_srl, $package_srl=0, $each_releases_count = 0)
{
if(!$module_srl) return array();
@ -396,18 +396,12 @@
if(in_array('commit', $targets))
{
$output = executeQueryArray("issuetracker.getChangesets", $args);
if(!$output->toBool())
{
return array();
}
}
if(!$output->data)
{
$output->data = array();
}
foreach($output->data as $key => $changeset)
{
$changeset->message = $this->_linkXE($changeset->message);
if(!$output->toBool()) return array();
if(!$output->data) $output->data = array();
// message에 htmlspecialchars() 적용
foreach($output->data as $key => $changeset)
$changeset->message = htmlspecialchars($this->_linkXE($changeset->message));
}
if(in_array('issue_changed', $targets))