Commit 78794e588a13c6d5eea428ce1027958b4eae6a2a
1 parent
49473ec3
KTS-2790
"CLONE -Backslashes appear before every quote and double quote throughout our version of knowledgetree(SUP-532)" Fixed. Removed the sanitiseForSql on the set functions. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7855 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
23 additions
and
23 deletions
lib/documentmanagement/documentmetadataversion.inc.php
| @@ -5,32 +5,32 @@ | @@ -5,32 +5,32 @@ | ||
| 5 | * KnowledgeTree Open Source Edition | 5 | * KnowledgeTree Open Source Edition |
| 6 | * Document Management Made Simple | 6 | * Document Management Made Simple |
| 7 | * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited | 7 | * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited |
| 8 | - * | 8 | + * |
| 9 | * This program is free software; you can redistribute it and/or modify it under | 9 | * This program is free software; you can redistribute it and/or modify it under |
| 10 | * the terms of the GNU General Public License version 3 as published by the | 10 | * the terms of the GNU General Public License version 3 as published by the |
| 11 | * Free Software Foundation. | 11 | * Free Software Foundation. |
| 12 | - * | 12 | + * |
| 13 | * This program is distributed in the hope that it will be useful, but WITHOUT | 13 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 15 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | 15 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 16 | * details. | 16 | * details. |
| 17 | - * | 17 | + * |
| 18 | * You should have received a copy of the GNU General Public License | 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | - * | 20 | + * |
| 21 | * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place, | 21 | * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place, |
| 22 | * Blake Street, Observatory, 7925 South Africa. or email info@knowledgetree.com. | 22 | * Blake Street, Observatory, 7925 South Africa. or email info@knowledgetree.com. |
| 23 | - * | 23 | + * |
| 24 | * The interactive user interfaces in modified source and object code versions | 24 | * The interactive user interfaces in modified source and object code versions |
| 25 | * of this program must display Appropriate Legal Notices, as required under | 25 | * of this program must display Appropriate Legal Notices, as required under |
| 26 | * Section 5 of the GNU General Public License version 3. | 26 | * Section 5 of the GNU General Public License version 3. |
| 27 | - * | 27 | + * |
| 28 | * In accordance with Section 7(b) of the GNU General Public License version 3, | 28 | * In accordance with Section 7(b) of the GNU General Public License version 3, |
| 29 | * these Appropriate Legal Notices must retain the display of the "Powered by | 29 | * these Appropriate Legal Notices must retain the display of the "Powered by |
| 30 | - * KnowledgeTree" logo and retain the original copyright notice. If the display of the | 30 | + * KnowledgeTree" logo and retain the original copyright notice. If the display of the |
| 31 | * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | 31 | * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices |
| 32 | - * must display the words "Powered by KnowledgeTree" and retain the original | ||
| 33 | - * copyright notice. | 32 | + * must display the words "Powered by KnowledgeTree" and retain the original |
| 33 | + * copyright notice. | ||
| 34 | * Contributor( s): ______________________________________ | 34 | * Contributor( s): ______________________________________ |
| 35 | * | 35 | * |
| 36 | */ | 36 | */ |
| @@ -103,9 +103,9 @@ class KTDocumentMetadataVersion extends KTEntity { | @@ -103,9 +103,9 @@ class KTDocumentMetadataVersion extends KTEntity { | ||
| 103 | function getDocumentTypeId() { return $this->iDocumentTypeId; } | 103 | function getDocumentTypeId() { return $this->iDocumentTypeId; } |
| 104 | function setDocumentTypeId($iNewValue) { $this->iDocumentTypeId = $iNewValue; } | 104 | function setDocumentTypeId($iNewValue) { $this->iDocumentTypeId = $iNewValue; } |
| 105 | function getName() { return sanitizeForSQLtoHTML($this->sName); } | 105 | function getName() { return sanitizeForSQLtoHTML($this->sName); } |
| 106 | - function setName($sNewValue) { $this->sName = sanitizeForSQL($sNewValue); } | 106 | + function setName($sNewValue) { $this->sName = $sNewValue; } |
| 107 | function getDescription() { return sanitizeForSQLtoHTML($this->sDescription); } | 107 | function getDescription() { return sanitizeForSQLtoHTML($this->sDescription); } |
| 108 | - function setDescription($sNewValue) { $this->sDescription = sanitizeForSQL($sNewValue); } | 108 | + function setDescription($sNewValue) { $this->sDescription = $sNewValue; } |
| 109 | function getStatusId() { return $this->iStatusId; } | 109 | function getStatusId() { return $this->iStatusId; } |
| 110 | function setStatusId($iNewValue) { $this->iStatusId = $iNewValue; } | 110 | function setStatusId($iNewValue) { $this->iStatusId = $iNewValue; } |
| 111 | function getVersionCreated() { return $this->dVersionCreated; } | 111 | function getVersionCreated() { return $this->dVersionCreated; } |
lib/help/helpreplacement.inc.php
| @@ -5,32 +5,32 @@ | @@ -5,32 +5,32 @@ | ||
| 5 | * KnowledgeTree Open Source Edition | 5 | * KnowledgeTree Open Source Edition |
| 6 | * Document Management Made Simple | 6 | * Document Management Made Simple |
| 7 | * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited | 7 | * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited |
| 8 | - * | 8 | + * |
| 9 | * This program is free software; you can redistribute it and/or modify it under | 9 | * This program is free software; you can redistribute it and/or modify it under |
| 10 | * the terms of the GNU General Public License version 3 as published by the | 10 | * the terms of the GNU General Public License version 3 as published by the |
| 11 | * Free Software Foundation. | 11 | * Free Software Foundation. |
| 12 | - * | 12 | + * |
| 13 | * This program is distributed in the hope that it will be useful, but WITHOUT | 13 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 15 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | 15 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 16 | * details. | 16 | * details. |
| 17 | - * | 17 | + * |
| 18 | * You should have received a copy of the GNU General Public License | 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | - * | 20 | + * |
| 21 | * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place, | 21 | * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place, |
| 22 | * Blake Street, Observatory, 7925 South Africa. or email info@knowledgetree.com. | 22 | * Blake Street, Observatory, 7925 South Africa. or email info@knowledgetree.com. |
| 23 | - * | 23 | + * |
| 24 | * The interactive user interfaces in modified source and object code versions | 24 | * The interactive user interfaces in modified source and object code versions |
| 25 | * of this program must display Appropriate Legal Notices, as required under | 25 | * of this program must display Appropriate Legal Notices, as required under |
| 26 | * Section 5 of the GNU General Public License version 3. | 26 | * Section 5 of the GNU General Public License version 3. |
| 27 | - * | 27 | + * |
| 28 | * In accordance with Section 7(b) of the GNU General Public License version 3, | 28 | * In accordance with Section 7(b) of the GNU General Public License version 3, |
| 29 | * these Appropriate Legal Notices must retain the display of the "Powered by | 29 | * these Appropriate Legal Notices must retain the display of the "Powered by |
| 30 | - * KnowledgeTree" logo and retain the original copyright notice. If the display of the | 30 | + * KnowledgeTree" logo and retain the original copyright notice. If the display of the |
| 31 | * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | 31 | * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices |
| 32 | - * must display the words "Powered by KnowledgeTree" and retain the original | ||
| 33 | - * copyright notice. | 32 | + * must display the words "Powered by KnowledgeTree" and retain the original |
| 33 | + * copyright notice. | ||
| 34 | * Contributor( s): ______________________________________ | 34 | * Contributor( s): ______________________________________ |
| 35 | * | 35 | * |
| 36 | */ | 36 | */ |
| @@ -61,9 +61,9 @@ class KTHelpReplacement extends KTEntity { | @@ -61,9 +61,9 @@ class KTHelpReplacement extends KTEntity { | ||
| 61 | function getDescription() { return sanitizeForSQLtoHTML($this->sDescription); } | 61 | function getDescription() { return sanitizeForSQLtoHTML($this->sDescription); } |
| 62 | function getTitle() { return sanitizeForSQLtoHTML($this->sTitle); } | 62 | function getTitle() { return sanitizeForSQLtoHTML($this->sTitle); } |
| 63 | function setID($iId) { $this->iId = $iId; } | 63 | function setID($iId) { $this->iId = $iId; } |
| 64 | - function setName($sName) { $this->sName = sanitizeForSQL($sName); } | ||
| 65 | - function setDescription($sDescription) { $this->sDescription = sanitizeForSQL($sDescription); } | ||
| 66 | - function setTitle($sTitle) { $this->sTitle= sanitizeForSQL($sTitle); } | 64 | + function setName($sName) { $this->sName = $sName; } |
| 65 | + function setDescription($sDescription) { $this->sDescription = $sDescription; } | ||
| 66 | + function setTitle($sTitle) { $this->sTitle= $sTitle; } | ||
| 67 | 67 | ||
| 68 | function _table () { | 68 | function _table () { |
| 69 | global $default; | 69 | global $default; |