Commit bea27957e9d538090e46af52b5c28db354ee40d6
1 parent
751b1397
stripped slashes from uploaded file name
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1751 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/documentmanagement/PhysicalDocumentManager.inc
| @@ -162,7 +162,7 @@ class PhysicalDocumentManager { | @@ -162,7 +162,7 @@ class PhysicalDocumentManager { | ||
| 162 | */ | 162 | */ |
| 163 | function & createDocumentFromUploadedFile($aFileArray, $iFolderID) { | 163 | function & createDocumentFromUploadedFile($aFileArray, $iFolderID) { |
| 164 | //get the uploaded document information and put it into a document object | 164 | //get the uploaded document information and put it into a document object |
| 165 | - $oDocument = & new Document($aFileArray['name'], $aFileArray['name'], $aFileArray['size'], $_SESSION["userID"], PhysicalDocumentManager::getMimeTypeID($aFileArray['type'], $aFileArray['name']), $iFolderID); | 165 | + $oDocument = & new Document(stripslashes($aFileArray['name']), stripslashes($aFileArray['name']), $aFileArray['size'], $_SESSION["userID"], PhysicalDocumentManager::getMimeTypeID($aFileArray['type'], $aFileArray['name']), $iFolderID); |
| 166 | return $oDocument; | 166 | return $oDocument; |
| 167 | } | 167 | } |
| 168 | 168 |