Commit 20a0e95fa7bde4d82d0b106a7327dda7c46a4e72
1 parent
c65ff32f
KTS-2091
"Rename folder does not handle non-alphanumeric/accented characters correctly" Fixed. KTS-2076 "Character encoding issue with document titles" Fixed. Committed By: Kevin Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6767 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
2 additions
and
2 deletions
plugins/ktcore/folder/Rename.php
| ... | ... | @@ -87,7 +87,7 @@ class KTFolderRenameAction extends KTFolderAction { |
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - $res = KTFolderUtil::rename($this->oFolder, sanitize($sFolderName), $this->oUser); | |
| 90 | + $res = KTFolderUtil::rename($this->oFolder, sanitizeForSQL($sFolderName), $this->oUser); | |
| 91 | 91 | if (PEAR::isError($res)) { |
| 92 | 92 | $_SESSION['KTErrorMessage'][] = $res->getMessage(); |
| 93 | 93 | redirect(KTBrowseUtil::getUrlForFolder($this->oFolder)); | ... | ... |
plugins/ktcore/folder/addDocument.php
| ... | ... | @@ -276,7 +276,7 @@ class KTFolderAddDocumentAction extends KTFolderAction { |
| 276 | 276 | ); |
| 277 | 277 | |
| 278 | 278 | $aFile = $this->oValidator->validateFile($extra_d['file'], $aErrorOptions); |
| 279 | - $sTitle = sanitize($extra_d['document_name']); | |
| 279 | + $sTitle = sanitizeForSQL($extra_d['document_name']); | |
| 280 | 280 | |
| 281 | 281 | $iFolderId = $this->oFolder->getId(); |
| 282 | 282 | $aOptions = array( | ... | ... |