Commit e0f706ad204203705bd0a4d11cb8fdb3f03b001e
1 parent
3bafaede
KTS-2108
"Unusual characters not reflected correctly in a Discussion on a document" Fixed. Committed By: Kevin Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6793 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
4 deletions
lib/discussions/DiscussionComment.inc
| @@ -62,10 +62,10 @@ class DiscussionComment extends KTEntity { | @@ -62,10 +62,10 @@ class DiscussionComment extends KTEntity { | ||
| 62 | function setThreadId($iThreadId){ $this->iThreadId = $iThreadId; } | 62 | function setThreadId($iThreadId){ $this->iThreadId = $iThreadId; } |
| 63 | function getUserId(){ return $this->iUserId; } | 63 | function getUserId(){ return $this->iUserId; } |
| 64 | function setUserId($iNewUserId){ $this->iUserId = $iNewUserId; } | 64 | function setUserId($iNewUserId){ $this->iUserId = $iNewUserId; } |
| 65 | - function getSubject(){ return $this->sSubject; } | ||
| 66 | - function setSubject($sNewSubject){ $this->sSubject = $sNewSubject; } | ||
| 67 | - function getBody(){ return $this->sBody; } | ||
| 68 | - function setBody($sNewBody){ $this->sBody = $sNewBody; } | 65 | + function getSubject(){ return sanitizeForSQLtoHTML($this->sSubject); } |
| 66 | + function setSubject($sNewSubject){ $this->sSubject = sanitizeForSQL($sNewSubject); } | ||
| 67 | + function getBody(){ return sanitizeForSQLtoHTML($this->sBody); } | ||
| 68 | + function setBody($sNewBody){ $this->sBody = sanitizeForSQL($sNewBody); } | ||
| 69 | function getDate(){ return $this->dDate; } | 69 | function getDate(){ return $this->dDate; } |
| 70 | function getInReplyTo(){ return $this->iInReplyTo; } | 70 | function getInReplyTo(){ return $this->iInReplyTo; } |
| 71 | function setInReplyTo($sNewCommentId){ $this->iInReplyTo = $sNewCommentId; } | 71 | function setInReplyTo($sNewCommentId){ $this->iInReplyTo = $sNewCommentId; } |