Commit bea27957e9d538090e46af52b5c28db354ee40d6

Authored by Michael Joseph
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
lib/documentmanagement/PhysicalDocumentManager.inc
... ... @@ -162,7 +162,7 @@ class PhysicalDocumentManager {
162 162 */
163 163 function & createDocumentFromUploadedFile($aFileArray, $iFolderID) {
164 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 166 return $oDocument;
167 167 }
168 168  
... ...